lspconfig: adapted to use automatic_enable for all lsp servers
Some checks are pending
Send submodule updates to parent repo / update (main) (push) Waiting to run
Send submodule updates to parent repo / update (tiling) (push) Waiting to run

This commit is contained in:
David Senoner 2025-05-10 11:09:02 +02:00
parent e8db509c87
commit 45444ef947
2 changed files with 4 additions and 11 deletions

View file

@ -13,7 +13,8 @@ return {
local mason_lspconfig = require("mason-lspconfig")
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

View file

@ -4,17 +4,11 @@ return {
config = function()
local lspconfig = require("lspconfig")
lspconfig.clangd.setup({
vim.lsp.config("clangd", {
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 = {
plugins = {
{
@ -26,7 +20,5 @@ return {
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
})
lspconfig.volar.setup({})
lspconfig.zig.setup({})
end
}