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")
|
local yarn_path = vim.fn.expand("$HOME/.config/yarn/global/node_modules")
|
||||||
|
|
||||||
vim.lsp.enable("vtsls")
|
vim.lsp.enable("ts_ls")
|
||||||
vim.lsp.config("vtsls", {
|
vim.lsp.config("ts_ls", {
|
||||||
settings = {
|
init_options = {
|
||||||
vtsls = {
|
plugins = {
|
||||||
tsserver = {
|
{
|
||||||
globalPlugins = {
|
name = "@vue/typescript-plugin",
|
||||||
{
|
location = yarn_path .. "/@vue/typescript-plugin",
|
||||||
configNamespace = "typescript",
|
languages = { "javascript", "typescript", "vue" },
|
||||||
name = "@vue/typescript-plugin",
|
}
|
||||||
location = yarn_path .. "/@vue/typescript-plugin",
|
}
|
||||||
languages = { "vue" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
filetypes = {
|
filetypes = {
|
||||||
"javascript",
|
"javascript",
|
||||||
|
|
2
setup
2
setup
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
yarn global add \
|
yarn global add \
|
||||||
@vtsls/language-server@latest \
|
typescript-language-server@latest \
|
||||||
@vue/language-server@latest
|
@vue/language-server@latest
|
||||||
|
|
Loading…
Reference in a new issue