From 6f7fc67600d4a848650000c559c706b1abd11cea Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Wed, 23 Oct 2024 00:51:21 -0300 Subject: [PATCH] feat(neovim): tsserver -> ts_ls; make ts_ls only work with a package.json; add denols --- modules/home-manager/programs/neovim/lsp.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/programs/neovim/lsp.nix b/modules/home-manager/programs/neovim/lsp.nix index 3156bb1..5896a1a 100644 --- a/modules/home-manager/programs/neovim/lsp.nix +++ b/modules/home-manager/programs/neovim/lsp.nix @@ -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