init.lua/lua/plugins/lspconfig.lua
David Senoner 45444ef947
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
lspconfig: adapted to use automatic_enable for all lsp servers
2025-05-10 11:11:08 +02:00

24 lines
620 B
Lua

return {
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
vim.lsp.config("clangd", {
cmd = { "clangd", "-header-insertion=never" },
})
vim.lsp.config("ts_ls", {
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = vim.fn.expand("$MASON") .. "/packages/vue-language-server/node_modules/@vue/language-server",
languages = { "vue" },
},
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
})
end
}