mirror of https://github.com/folke/lazy.nvim.git
fix(install): dont load the colorscheme again if a `config()` of the colorscheme also loads it. Fixes #488
This commit is contained in:
parent
48c9b37294
commit
49b43def14
|
@ -63,7 +63,8 @@ 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 pcall(vim.cmd.colorscheme, colorscheme) then
|
||||
M.colorscheme(colorscheme)
|
||||
if vim.g.colors_name or pcall(vim.cmd.colorscheme, colorscheme) then
|
||||
break
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue