diff options
Diffstat (limited to 'lsp/eslint.lua')
| -rw-r--r-- | lsp/eslint.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lsp/eslint.lua b/lsp/eslint.lua index 24fac5c3..c200adc1 100644 --- a/lsp/eslint.lua +++ b/lsp/eslint.lua @@ -95,6 +95,12 @@ return { -- 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, { '.git' } } or vim.list_extend(root_markers, { '.git' }) + + -- exclude deno + if vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) then + return + end + -- We fallback to the current working directory if no project root is found local project_root = vim.fs.root(bufnr, root_markers) or vim.fn.getcwd() |
