Use vim.schedule()
This commit is contained in:
parent
2fc0884419
commit
3f4edd589a
@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user