mirror of https://github.com/folke/lazy.nvim.git
fix(manage): better support for using the default colorscheme during install. See #1277
This commit is contained in:
parent
28126922c9
commit
670a6fec7f
|
@ -67,6 +67,9 @@ function M.install_missing()
|
||||||
for _, plugin in pairs(Config.plugins) do
|
for _, plugin in pairs(Config.plugins) do
|
||||||
if not (plugin._.installed or Plugin.has_errors(plugin)) then
|
if not (plugin._.installed or Plugin.has_errors(plugin)) then
|
||||||
for _, colorscheme in ipairs(Config.options.install.colorscheme) do
|
for _, colorscheme in ipairs(Config.options.install.colorscheme) do
|
||||||
|
if colorscheme == "default" then
|
||||||
|
break
|
||||||
|
end
|
||||||
M.colorscheme(colorscheme)
|
M.colorscheme(colorscheme)
|
||||||
if vim.g.colors_name or pcall(vim.cmd.colorscheme, colorscheme) then
|
if vim.g.colors_name or pcall(vim.cmd.colorscheme, colorscheme) then
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue