-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathmason.lua
More file actions
28 lines (23 loc) · 803 Bytes
/
mason.lua
File metadata and controls
28 lines (23 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require("mason").setup({
ui = {
icons = {
package_installed = "✓",
package_pending = "➜",
package_uninstalled = "✗"
}
}
})
vim.lsp.set_log_level("WARN")
local lsp_list = { "clangd", "pyright", "lua_ls" }
if vim.g.archvim_predownload and vim.g.archvim_predownload ~= 0 then
lsp_list = { "clangd", "pyright", "lua_ls", "ts_ls", "fish_lsp", "cmake", "rust_analyzer", "arduino_language_server", "jsonls", "bashls", "sqlls" }
end
require("mason-lspconfig").setup {
ensure_installed = lsp_list,
automatic_installation = vim.g.archvim_predownload and vim.g.archvim_predownload ~= 0,
automatic_enable = true,
}
vim.lsp.config("*", {
capabilities = vim.lsp.protocol.make_client_capabilities()
})
vim.lsp.enable(lsp_list)