check for empty/nil mason ensure_installed table #2580

This commit is contained in:
siduck 2023-12-27 19:49:31 +05:30
parent d7798fb74a
commit a439de385b

View file

@ -128,7 +128,9 @@ local default_plugins = {
-- custom nvchad cmd to install all mason binaries listed
vim.api.nvim_create_user_command("MasonInstallAll", function()
if opts.ensure_installed and #opts.ensure_installed > 0 then
vim.cmd("MasonInstall " .. table.concat(opts.ensure_installed, " "))
end
end, {})
vim.g.mason_binaries_list = opts.ensure_installed