diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index e6c57e1..36a1f68 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -11,14 +11,13 @@ function M.setup() -- install missing plugins if Config.options.install.missing then Util.track("install") - for _, colorscheme in ipairs(Config.options.install.colorscheme) do - if pcall(vim.cmd.colorscheme, colorscheme) then - break - end - end for _, plugin in pairs(Config.plugins) do if not plugin._.installed then - vim.cmd("do User LazyInstallPre") + for _, colorscheme in ipairs(Config.options.install.colorscheme) do + if pcall(vim.cmd.colorscheme, colorscheme) then + break + end + end require("lazy.manage").install({ wait = true }) break end