Go back to typescript-language-server

This commit is contained in:
Jan Hamal Dvořák 2025-07-31 15:53:41 +02:00
parent a657201c19
commit ce8209dfba
2 changed files with 11 additions and 16 deletions

View file

@ -100,21 +100,16 @@ vim.lsp.config("hls", {
local yarn_path = vim.fn.expand("$HOME/.config/yarn/global/node_modules")
vim.lsp.enable("vtsls")
vim.lsp.config("vtsls", {
settings = {
vtsls = {
tsserver = {
globalPlugins = {
{
configNamespace = "typescript",
name = "@vue/typescript-plugin",
location = yarn_path .. "/@vue/typescript-plugin",
languages = { "vue" },
},
},
},
},
vim.lsp.enable("ts_ls")
vim.lsp.config("ts_ls", {
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = yarn_path .. "/@vue/typescript-plugin",
languages = { "javascript", "typescript", "vue" },
}
}
},
filetypes = {
"javascript",

2
setup
View file

@ -1,5 +1,5 @@
#!/bin/bash -ex
yarn global add \
@vtsls/language-server@latest \
typescript-language-server@latest \
@vue/language-server@latest