mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 12:56:46 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ 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 pcall(vim.cmd.colorscheme, colorscheme) then
|
M.colorscheme(colorscheme)
|
||||||
|
if vim.g.colors_name or pcall(vim.cmd.colorscheme, colorscheme) then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue