Skip to content

Commit 1e67dc0

Browse files
committed
perf(util): dont trigger VeryLazy autocmds when exiting
1 parent 02482b1 commit 1e67dc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/lazy/core/util.lua

+3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ end
142142
function M.very_lazy()
143143
local function _load()
144144
vim.schedule(function()
145+
if vim.v.exiting then
146+
return
147+
end
145148
vim.g.did_very_lazy = true
146149
vim.api.nvim_exec_autocmds("User", { pattern = "VeryLazy", modeline = false })
147150
end)

0 commit comments

Comments
 (0)