feat!: lazy now handles the full startup sequence (vim.go.loadplugins=false)

This commit is contained in:
Folke Lemaitre 2022-12-14 21:03:53 +01:00
parent ad0b4caa64
commit ec2f432a84
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 89 additions and 49 deletions

View file

@ -7,6 +7,8 @@ function M.setup(spec, opts)
vim.notify("Re-sourcing your config is not supported with lazy.nvim", vim.log.levels.WARN, { title = "lazy.nvim" })
return
end
vim.go.loadplugins = false
vim.g.lazy_did_setup = true
local start = vim.loop.hrtime()
@ -42,7 +44,7 @@ function M.setup(spec, opts)
end
-- load plugins with lazy=false or Plugin.init
Loader.init_plugins()
Loader.startup()
-- all done!
vim.cmd("do User LazyDone")