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
|
-- install missing plugins
|
||||||
if Config.options.install.missing then
|
if Config.options.install.missing then
|
||||||
Util.track("install")
|
Util.track("install")
|
||||||
|
for _, plugin in pairs(Config.plugins) do
|
||||||
|
if not plugin._.installed then
|
||||||
for _, colorscheme in ipairs(Config.options.install.colorscheme) do
|
for _, colorscheme in ipairs(Config.options.install.colorscheme) do
|
||||||
if pcall(vim.cmd.colorscheme, colorscheme) then
|
if pcall(vim.cmd.colorscheme, colorscheme) then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for _, plugin in pairs(Config.plugins) do
|
|
||||||
if not plugin._.installed then
|
|
||||||
vim.cmd("do User LazyInstallPre")
|
|
||||||
require("lazy.manage").install({ wait = true })
|
require("lazy.manage").install({ wait = true })
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue