Go back to typescript-language-server
This commit is contained in:
parent
a657201c19
commit
ce8209dfba
2 changed files with 11 additions and 16 deletions
25
lua/init.lua
25
lua/init.lua
|
@ -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
2
setup
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
yarn global add \
|
||||
@vtsls/language-server@latest \
|
||||
typescript-language-server@latest \
|
||||
@vue/language-server@latest
|
||||
|
|
Loading…
Reference in a new issue