diff options
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/ts_ls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index cc588007..dc71fca3 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -64,8 +64,8 @@ return { or vim.list_extend(root_markers, { '.git' }) -- exclude deno local deno_path = vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) - local project_root = vim.fs.root(bufnr, { root_markers }) - if deno_path and not project_root or #deno_path >= #project_root then + local project_root = vim.fs.root(bufnr, root_markers) + if deno_path and (not project_root or #deno_path >= #project_root) then return end -- We fallback to the current working directory if no project root is found |
