24 lines
620 B
Lua
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
|
|
}
|