mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat!: lazy now handles the full startup sequence (vim.go.loadplugins=false
)
This commit is contained in:
parent
ad0b4caa64
commit
ec2f432a84
4 changed files with 89 additions and 49 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue