Skip to content

Commit

Permalink
fix: check for lazy before setting loading time
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 26, 2022
1 parent 8790070 commit 30bdc9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lazy/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function M.setup(opts)

Loader.init_plugins()

Config.plugins["lazy.nvim"].loaded.time = lazy_delta
if Config.plugins["lazy.nvim"] then
Config.plugins["lazy.nvim"].loaded.time = lazy_delta
end
done = true

vim.cmd("do User LazyDone")
Expand Down

0 comments on commit 30bdc9b

Please sign in to comment.