mirror of https://github.com/folke/lazy.nvim.git
fix: temporary colorscheme should only load when installing
This commit is contained in:
parent
7ec65e4cd9
commit
ec858db225
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue