feat: config option install_missing=true

This commit is contained in:
Folke Lemaitre 2022-11-29 23:16:57 +01:00
parent 3ec5a2ce4c
commit 9be3d3d840
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 13 additions and 12 deletions

View File

@ -25,6 +25,7 @@ function M.setup(opts)
Plugin.load() Plugin.load()
Util.track() Util.track()
if Config.options.install_missing then
Util.track("install") Util.track("install")
for _, plugin in pairs(Config.plugins) do for _, plugin in pairs(Config.plugins) do
if not plugin._.installed then if not plugin._.installed then
@ -37,13 +38,12 @@ function M.setup(opts)
end end
end end
Util.track() Util.track()
end
Util.track("loader") Util.track("loader")
Loader.setup() Loader.setup()
Util.track() Util.track()
Util.track() -- end setup
local lazy_delta = vim.loop.hrtime() - cache_start local lazy_delta = vim.loop.hrtime() - cache_start
Loader.init_plugins() Loader.init_plugins()
@ -53,6 +53,7 @@ function M.setup(opts)
end end
vim.cmd("do User LazyDone") vim.cmd("do User LazyDone")
Util.track() -- end setup
end end
function M.stats() function M.stats()