From 33e318a3f0e729fb7ee82619a21172712b0ea288 Mon Sep 17 00:00:00 2001 From: Kai Moschcau Date: Wed, 3 Sep 2025 14:21:40 +0200 Subject: 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. --- lsp/ts_ls.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp/ts_ls.lua') diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index 7be78087..a0ae150f 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -58,7 +58,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) -- cgit v1.2.3-70-g09d2