32 lines
911 B
Lua
32 lines
911 B
Lua
local status_ok, mason = pcall(require, "mason")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
mason.setup()
|
|
require("mason-lspconfig").setup({
|
|
automatic_installation = true,
|
|
})
|
|
|
|
require("mason-tool-installer").setup({
|
|
auto_update = false,
|
|
run_on_start = true,
|
|
})
|
|
|
|
lspconfig.util.default_config = vim.tbl_extend("force", lspconfig.util.default_config, {
|
|
on_attach = require("user.lsp.handlers").on_attach,
|
|
capabilities = require("user.lsp.handlers").capabilities,
|
|
})
|
|
|
|
require("user.lsp.settings.lua.sumneko_lua")
|
|
require("user.lsp.settings.lua.jsonls")
|
|
require("user.lsp.settings.lua.tsserver")
|
|
require("user.lsp.settings.lua.yamlls")
|
|
require("user.lsp.settings.lua.volar")
|
|
require("user.lsp.settings.lua.dockerls")
|
|
require("user.lsp.settings.lua.rnix")
|
|
require("user.lsp.settings.lua.taplo")
|
|
require("user.lsp.settings.lua.omnisharp")
|
|
require("user.lsp.settings.lua.lemminx")
|