lspconfig: adapted to use automatic_enable
for all lsp servers
This commit is contained in:
parent
e8db509c87
commit
b44b7e7d56
2 changed files with 4 additions and 11 deletions
|
@ -13,7 +13,8 @@ return {
|
||||||
local mason_lspconfig = require("mason-lspconfig")
|
local mason_lspconfig = require("mason-lspconfig")
|
||||||
|
|
||||||
mason_lspconfig.setup({
|
mason_lspconfig.setup({
|
||||||
ensure_installed = { "clangd", "lua_ls", "matlab_ls", "mesonlsp", "texlab", "ts_ls", "volar", "zls" }
|
ensure_installed = { "clangd", "lua_ls", "matlab_ls", "mesonlsp", "texlab", "ts_ls", "volar", "zls" },
|
||||||
|
automatic_enable = true
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,17 +4,11 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
lspconfig.clangd.setup({
|
vim.lsp.config("clangd", {
|
||||||
cmd = { "clangd", "-header-insertion=never" },
|
cmd = { "clangd", "-header-insertion=never" },
|
||||||
})
|
})
|
||||||
lspconfig.lua_ls.setup({})
|
|
||||||
lspconfig.matlab_ls.setup({})
|
|
||||||
lspconfig.mesonlsp.setup({})
|
|
||||||
lspconfig.sqlls.setup({})
|
|
||||||
lspconfig.svlangserver.setup({})
|
|
||||||
lspconfig.texlab.setup({})
|
|
||||||
|
|
||||||
lspconfig.ts_ls.setup({
|
vim.lsp.config("ts_ls", {
|
||||||
init_options = {
|
init_options = {
|
||||||
plugins = {
|
plugins = {
|
||||||
{
|
{
|
||||||
|
@ -26,7 +20,5 @@ return {
|
||||||
},
|
},
|
||||||
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
|
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
|
||||||
})
|
})
|
||||||
lspconfig.volar.setup({})
|
|
||||||
lspconfig.zig.setup({})
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue