feat(neovim): tsserver -> ts_ls; make ts_ls only work with a package.json; add denols

This commit is contained in:
Alexandre Cavalheiro 2024-10-23 00:51:21 -03:00
parent 35303bc8e8
commit 6f7fc67600
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -61,6 +61,7 @@ in
"cmake",
"csharp_ls",
"cssls",
"denols",
"eslint",
"html",
"jsonls",
@ -70,7 +71,7 @@ in
"rust_analyzer",
"svelte",
"taplo",
"tsserver",
"ts_ls",
"volar",
"yamlls",
},
@ -93,7 +94,7 @@ in
},
},
},
tsserver = {
ts_ls = {
init_options = {
plugins = {
{
@ -108,6 +109,7 @@ in
"typescript",
"vue",
},
root_dir = require("lspconfig.util").root_pattern("package.json"),
},
},
-- customize how language servers are attached