fix: check for lazy before setting loading time

This commit is contained in:
Folke Lemaitre 2022-11-26 13:58:18 +01:00
parent 8790070871
commit 30bdc9b5a1
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ function M.setup(opts)
Loader.init_plugins() Loader.init_plugins()
if Config.plugins["lazy.nvim"] then
Config.plugins["lazy.nvim"].loaded.time = lazy_delta Config.plugins["lazy.nvim"].loaded.time = lazy_delta
end
done = true done = true
vim.cmd("do User LazyDone") vim.cmd("do User LazyDone")