aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/tsgo.lua
diff options
context:
space:
mode:
authorKai Moschcau <kai@kmoschcau.de>2025-09-03 14:21:40 +0200
committerGitHub <noreply@github.com>2025-09-03 05:21:40 -0700
commit33e318a3f0e729fb7ee82619a21172712b0ea288 (patch)
treea5a222b917656cacf3202a8d2875bbdf72c806ff /lsp/tsgo.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.tar
nvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.tar.gz
nvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.tar.bz2
nvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.tar.lz
nvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.tar.xz
nvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.tar.zst
nvim-lspconfig-33e318a3f0e729fb7ee82619a21172712b0ea288.zip
feat(biome,eslint,svelte,ts_ls,tsgo,vtsls): add deno.lock root marker #4051
Problem: `deno.lock` is not recognized as a root marker in JavaScript related servers. Solution: Add `deno.lock` as a root marker.
Diffstat (limited to 'lsp/tsgo.lua')
-rw-r--r--lsp/tsgo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/tsgo.lua b/lsp/tsgo.lua
index 17cbcae8..3b26ad10 100644
--- a/lsp/tsgo.lua
+++ b/lsp/tsgo.lua
@@ -30,7 +30,7 @@ return {
-- As stated in the documentation above, this LSP supports monorepos and simple projects.
-- We select then from the project root, which is identified by the presence of a package
-- manager lock file.
- local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
+ local root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock', 'deno.lock' }
-- Give the root markers equal priority by wrapping them in a table
root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers } or root_markers
local project_root = vim.fs.root(bufnr, root_markers)