mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
add cmd to install all mason.nvim packages
This commit is contained in:
parent
a83ebc34e5
commit
fd30351b0d
2 changed files with 6 additions and 1 deletions
|
@ -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 a new issue