2023-01-07 09:11:43 +01:00
|
|
|
loadfile(vim.g.base46_cache .. "mason")()
|
2022-07-25 15:49:33 +02:00
|
|
|
|
|
|
|
local options = {
|
2022-07-25 16:25:31 +02:00
|
|
|
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
|
2022-07-25 15:49:33 +02:00
|
|
|
|
2022-10-06 02:11:05 +02:00
|
|
|
PATH = "skip",
|
|
|
|
|
2022-07-25 15:49:33 +02:00
|
|
|
ui = {
|
|
|
|
icons = {
|
|
|
|
package_pending = " ",
|
|
|
|
package_installed = " ",
|
|
|
|
package_uninstalled = " ﮊ",
|
|
|
|
},
|
|
|
|
|
|
|
|
keymaps = {
|
|
|
|
toggle_server_expand = "<CR>",
|
|
|
|
install_server = "i",
|
|
|
|
update_server = "u",
|
|
|
|
check_server_version = "c",
|
|
|
|
update_all_servers = "U",
|
|
|
|
check_outdated_servers = "C",
|
|
|
|
uninstall_server = "X",
|
|
|
|
cancel_installation = "<C-c>",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
max_concurrent_installers = 10,
|
|
|
|
}
|
|
|
|
|
2022-07-26 03:27:50 +02:00
|
|
|
options = require("core.utils").load_override(options, "williamboman/mason.nvim")
|
2022-07-25 15:49:33 +02:00
|
|
|
|
2022-07-25 16:25:31 +02:00
|
|
|
vim.api.nvim_create_user_command("MasonInstallAll", function()
|
|
|
|
vim.cmd("MasonInstall " .. table.concat(options.ensure_installed, " "))
|
|
|
|
end, {})
|
|
|
|
|
2023-01-25 15:41:55 +01:00
|
|
|
require("mason").setup(options)
|