Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
neovim-config/lua/user/lsp/mason.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")