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