mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix(loader): respect empty colorscheme (#713)
This gives the option to not override default colorscheme during plugin installation by using the configuration: ``` { install = { colorscheme = {}, }, } ``` If the user specifies a scheme or keeps the default, we will fall back to 'habamax' as before.
This commit is contained in:
parent
96584866b9
commit
b96501de77
1 changed files with 3 additions and 1 deletions
|
@ -210,7 +210,9 @@ function M.setup(opts)
|
|||
if type(M.options.spec) == "string" then
|
||||
M.options.spec = { import = M.options.spec }
|
||||
end
|
||||
table.insert(M.options.install.colorscheme, "habamax")
|
||||
if #M.options.install.colorscheme > 0 then
|
||||
table.insert(M.options.install.colorscheme, "habamax")
|
||||
end
|
||||
|
||||
M.options.root = Util.norm(M.options.root)
|
||||
M.options.dev.path = Util.norm(M.options.dev.path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue