add cmd to install all mason.nvim packages
This commit is contained in:
parent
a83ebc34e5
commit
fd30351b0d
|
@ -56,6 +56,7 @@ M.treesitter_cmds = {
|
|||
M.mason_cmds = {
|
||||
"Mason",
|
||||
"MasonInstall",
|
||||
"MasonInstallAll",
|
||||
"MasonUninstall",
|
||||
"MasonUninstallAll",
|
||||
"MasonLog",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue