aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--lsp/biome.lua2
-rw-r--r--lsp/eslint.lua2
-rw-r--r--lsp/svelte.lua2
-rw-r--r--lsp/ts_ls.lua2
-rw-r--r--lsp/tsgo.lua2
-rw-r--r--lsp/vtsls.lua2
6 files changed, 6 insertions, 6 deletions
diff --git a/lsp/biome.lua b/lsp/biome.lua
index 90f5c74f..b3d2100d 100644
--- a/lsp/biome.lua
+++ b/lsp/biome.lua
@@ -44,7 +44,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)
diff --git a/lsp/eslint.lua b/lsp/eslint.lua
index eed05827..5e6cb1d4 100644
--- a/lsp/eslint.lua
+++ b/lsp/eslint.lua
@@ -91,7 +91,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)
diff --git a/lsp/svelte.lua b/lsp/svelte.lua
index 84bfd000..e7177991 100644
--- a/lsp/svelte.lua
+++ b/lsp/svelte.lua
@@ -14,7 +14,7 @@ return {
cmd = { 'svelteserver', '--stdio' },
filetypes = { 'svelte' },
root_dir = function(bufnr, on_dir)
- local root_files = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' }
+ local root_files = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock', 'deno.lock' }
local fname = vim.api.nvim_buf_get_name(bufnr)
-- Svelte LSP only supports file:// schema. https://github.com/sveltejs/language-tools/issues/2777
if vim.uv.fs_stat(fname) ~= nil then
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)
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)
diff --git a/lsp/vtsls.lua b/lsp/vtsls.lua
index d9c2f1e4..ba2e7de5 100644
--- a/lsp/vtsls.lua
+++ b/lsp/vtsls.lua
@@ -84,7 +84,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)