Skip to content

Commit

Permalink
perf(util): properly check that Neovim is exiting. Dont run VeryLazy …
Browse files Browse the repository at this point in the history
…when that's the case
  • Loading branch information
folke committed Jan 16, 2023
1 parent e8cb863 commit efe72d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/lazy/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ end
function M.very_lazy()
local function _load()
vim.schedule(function()
-- if vim.v.exiting then
-- return
-- end
if vim.v.exiting ~= vim.NIL 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 efe72d9

Please sign in to comment.