Skip to content

Commit

Permalink
perf(util): dont trigger VeryLazy autocmds when exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 16, 2023
1 parent 02482b1 commit 1e67dc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e67dc0

Please sign in to comment.