mirror of https://github.com/folke/lazy.nvim.git
feat: config option install_missing=true
This commit is contained in:
parent
3ec5a2ce4c
commit
9be3d3d840
|
@ -25,6 +25,7 @@ function M.setup(opts)
|
|||
Plugin.load()
|
||||
Util.track()
|
||||
|
||||
if Config.options.install_missing then
|
||||
Util.track("install")
|
||||
for _, plugin in pairs(Config.plugins) do
|
||||
if not plugin._.installed then
|
||||
|
@ -37,13 +38,12 @@ function M.setup(opts)
|
|||
end
|
||||
end
|
||||
Util.track()
|
||||
end
|
||||
|
||||
Util.track("loader")
|
||||
Loader.setup()
|
||||
Util.track()
|
||||
|
||||
Util.track() -- end setup
|
||||
|
||||
local lazy_delta = vim.loop.hrtime() - cache_start
|
||||
|
||||
Loader.init_plugins()
|
||||
|
@ -53,6 +53,7 @@ function M.setup(opts)
|
|||
end
|
||||
|
||||
vim.cmd("do User LazyDone")
|
||||
Util.track() -- end setup
|
||||
end
|
||||
|
||||
function M.stats()
|
||||
|
|
Loading…
Reference in New Issue