Use vim.schedule()

This commit is contained in:
pfych 2025-03-21 14:59:27 +11:00
parent 2fc0884419
commit 3f4edd589a

View File

@ -1,6 +1,7 @@
vim.api.nvim_create_autocmd("User", { vim.api.nvim_create_autocmd("User", {
pattern = "LazyUpdate", pattern = "LazyUpdate",
callback = function() callback = function()
vim.schedule(function()
local home = os.getenv("HOME") or "~/" local home = os.getenv("HOME") or "~/"
local cmd = { local cmd = {
@ -26,6 +27,7 @@ vim.api.nvim_create_autocmd("User", {
vim.notify("Git ran, but nothing committed") vim.notify("Git ran, but nothing committed")
end end
end end
end)
end end
}) })