mirror of https://github.com/folke/lazy.nvim.git
perf(util): dont trigger VeryLazy autocmds when exiting
This commit is contained in:
parent
02482b1ec9
commit
1e67dc0d56
|
@ -142,6 +142,9 @@ end
|
|||
function M.very_lazy()
|
||||
local function _load()
|
||||
vim.schedule(function()
|
||||
if vim.v.exiting then
|
||||
return
|
||||
end
|
||||
vim.g.did_very_lazy = true
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "VeryLazy", modeline = false })
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue