Skip to content

Commit

Permalink
fix(manage): better support for using the default colorscheme during …
Browse files Browse the repository at this point in the history
…install. See #1277
  • Loading branch information
folke committed Jan 23, 2024
1 parent 2812692 commit 670a6fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function M.install_missing()
for _, plugin in pairs(Config.plugins) do
if not (plugin._.installed or Plugin.has_errors(plugin)) then
for _, colorscheme in ipairs(Config.options.install.colorscheme) do
if colorscheme == "default" then
break
end
M.colorscheme(colorscheme)
if vim.g.colors_name or pcall(vim.cmd.colorscheme, colorscheme) then
break
Expand Down

0 comments on commit 670a6fe

Please sign in to comment.