init.lua/lua/plugins/lspconfig.lua

25 lines
620 B
Lua
Raw Normal View History

2024-11-01 23:14:18 +01:00
return {
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
vim.lsp.config("clangd", {
2024-11-01 23:14:18 +01:00
cmd = { "clangd", "-header-insertion=never" },
})
2025-01-26 19:26:48 +01:00
vim.lsp.config("ts_ls", {
2025-01-26 19:26:48 +01:00
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
2025-05-10 11:03:51 +02:00
location = vim.fn.expand("$MASON") .. "/packages/vue-language-server/node_modules/@vue/language-server",
2025-01-26 19:26:48 +01:00
languages = { "vue" },
},
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
})
2024-11-01 23:14:18 +01:00
end
}