Skip to content

Commit

Permalink
fix: temporary colorscheme should only load when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 2, 2022
1 parent 7ec65e4 commit ec858db
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec858db

Please sign in to comment.