add cmd to install all mason.nvim packages

This commit is contained in:
siduck 2022-07-25 14:25:31 +00:00
parent a83ebc34e5
commit fd30351b0d
2 changed files with 6 additions and 1 deletions

View file

@ -56,6 +56,7 @@ M.treesitter_cmds = {
M.mason_cmds = {
"Mason",
"MasonInstall",
"MasonInstallAll",
"MasonUninstall",
"MasonUninstallAll",
"MasonLog",

View file

@ -7,7 +7,7 @@ end
require("base46").load_highlight "mason"
local options = {
ensure_installed = { "pyright" },
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
ui = {
icons = {
@ -33,4 +33,8 @@ local options = {
options = require("core.utils").load_override(options, "williamboman/mason")
vim.api.nvim_create_user_command("MasonInstallAll", function()
vim.cmd("MasonInstall " .. table.concat(options.ensure_installed, " "))
end, {})
mason.setup(options)