diff options
| author | Thiago Marques <12144525+thi-marques@users.noreply.github.com> | 2025-11-18 17:26:37 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-18 12:26:37 -0800 |
| commit | b7c48a7111534b66bee077da8035ac7208a294ff (patch) | |
| tree | 5a60002cd65e0c5cf8c4db9b4b22eedc0f267ad3 /lsp | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.tar nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.tar.gz nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.tar.bz2 nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.tar.lz nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.tar.xz nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.tar.zst nvim-lspconfig-b7c48a7111534b66bee077da8035ac7208a294ff.zip | |
fix(lsp): detect deno.jsonc as Deno project for biome/eslint/ts_ls/tsgo/vtsls #4203
Even though Deno docs says that both deno.json and deno.jsonc files can
be used for its configuration, deno.jsonc was not being considered to
prevent biome/eslint/ts_ls/tsgo/vtsls to run in Deno projects.
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/biome.lua | 2 | ||||
| -rw-r--r-- | lsp/eslint.lua | 2 | ||||
| -rw-r--r-- | lsp/ts_ls.lua | 2 | ||||
| -rw-r--r-- | lsp/tsgo.lua | 2 | ||||
| -rw-r--r-- | lsp/vtsls.lua | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/lsp/biome.lua b/lsp/biome.lua index d8d569d1..230ec99e 100644 --- a/lsp/biome.lua +++ b/lsp/biome.lua @@ -50,7 +50,7 @@ return { or vim.list_extend(root_markers, { '.git' }) -- exclude deno - if vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) then + if vim.fs.root(bufnr, { 'deno.json', 'deno.jsonc', 'deno.lock' }) then return end diff --git a/lsp/eslint.lua b/lsp/eslint.lua index 37f51eac..1387c530 100644 --- a/lsp/eslint.lua +++ b/lsp/eslint.lua @@ -97,7 +97,7 @@ return { or vim.list_extend(root_markers, { '.git' }) -- exclude deno - if vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) then + if vim.fs.root(bufnr, { 'deno.json', 'deno.jsonc', 'deno.lock' }) then return end diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index dc71fca3..df8e34fa 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -63,7 +63,7 @@ return { root_markers = vim.fn.has('nvim-0.11.3') == 1 and { root_markers, { '.git' } } or vim.list_extend(root_markers, { '.git' }) -- exclude deno - local deno_path = vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) + local deno_path = vim.fs.root(bufnr, { 'deno.json', 'deno.jsonc', 'deno.lock' }) local project_root = vim.fs.root(bufnr, root_markers) if deno_path and (not project_root or #deno_path >= #project_root) then return diff --git a/lsp/tsgo.lua b/lsp/tsgo.lua index cf879137..d0394826 100644 --- a/lsp/tsgo.lua +++ b/lsp/tsgo.lua @@ -36,7 +36,7 @@ return { or vim.list_extend(root_markers, { '.git' }) -- exclude deno - if vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) then + if vim.fs.root(bufnr, { 'deno.json', 'deno.jsonc', 'deno.lock' }) then return end diff --git a/lsp/vtsls.lua b/lsp/vtsls.lua index be1f0dfc..29466f5e 100644 --- a/lsp/vtsls.lua +++ b/lsp/vtsls.lua @@ -90,7 +90,7 @@ return { or vim.list_extend(root_markers, { '.git' }) -- exclude deno - if vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) then + if vim.fs.root(bufnr, { 'deno.json', 'deno.jsonc', 'deno.lock' }) then return end |
