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 = {
|
M.mason_cmds = {
|
||||||
"Mason",
|
"Mason",
|
||||||
"MasonInstall",
|
"MasonInstall",
|
||||||
|
"MasonInstallAll",
|
||||||
"MasonUninstall",
|
"MasonUninstall",
|
||||||
"MasonUninstallAll",
|
"MasonUninstallAll",
|
||||||
"MasonLog",
|
"MasonLog",
|
||||||
|
@ -7,7 +7,7 @@ end
|
|||||||
require("base46").load_highlight "mason"
|
require("base46").load_highlight "mason"
|
||||||
|
|
||||||
local options = {
|
local options = {
|
||||||
ensure_installed = { "pyright" },
|
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
|
||||||
|
|
||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
@ -33,4 +33,8 @@ local options = {
|
|||||||
|
|
||||||
options = require("core.utils").load_override(options, "williamboman/mason")
|
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)
|
mason.setup(options)
|
||||||
|
Loading…
Reference in New Issue
Block a user