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