diff options
| author | Oskar Haarklou Veileborg <ohv1020@hotmail.com> | 2025-08-20 18:31:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-20 09:31:19 -0700 |
| commit | 99748c019f214d2f4372094fe5766a616f27e124 (patch) | |
| tree | 67b5a446f3dd442569e12e93fa6c0dbd0779e782 /lsp/vtsls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.tar nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.tar.gz nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.tar.bz2 nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.tar.lz nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.tar.xz nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.tar.zst nvim-lspconfig-99748c019f214d2f4372094fe5766a616f27e124.zip | |
fix(ts/js): give lockfiles equal priority when finding root #4013
Diffstat (limited to 'lsp/vtsls.lua')
| -rw-r--r-- | lsp/vtsls.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lsp/vtsls.lua b/lsp/vtsls.lua index 3f89d77e..5c17746a 100644 --- a/lsp/vtsls.lua +++ b/lsp/vtsls.lua @@ -82,7 +82,8 @@ return { -- We select then from the project root, which is identified by the presence of a package -- manager lock file. local project_root_markers = { 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb', 'bun.lock' } - local project_root = vim.fs.root(bufnr, project_root_markers) + -- Give the root markers equal priority by wrapping them in a table + local project_root = vim.fs.root(bufnr, { project_root_markers }) if not project_root then return end |
