fixup: don't extend _with_ 'all'

This commit is contained in:
Christian Clason 2024-01-17 11:01:24 +01:00
parent 94cb036ba7
commit 7b326a0962

View file

@ -421,7 +421,7 @@ function M.setup(user_data)
end end
local ensure_installed = user_data.ensure_installed or {} local ensure_installed = user_data.ensure_installed or {}
if type(ensure_installed) == "table" then if type(ensure_installed) == "table" and type(config.ensure_installed) == "table" then
vim.list_extend(ensure_installed, config.ensure_installed) vim.list_extend(ensure_installed, config.ensure_installed)
end end
if #ensure_installed > 0 then if #ensure_installed > 0 then