diff options
| author | Kai Moschcau <kai@kmoschcau.de> | 2025-09-03 14:21:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 05:21:40 -0700 |
| commit | 33e318a3f0e729fb7ee82619a21172712b0ea288 (patch) | |
| tree | a5a222b917656cacf3202a8d2875bbdf72c806ff /lsp/ts_ls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-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/ts_ls.lua')
| -rw-r--r-- | lsp/ts_ls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
