Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lsp/biome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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()

Expand Down
6 changes: 6 additions & 0 deletions lsp/eslint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
6 changes: 6 additions & 0 deletions lsp/ts_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,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()

Expand Down
6 changes: 6 additions & 0 deletions lsp/tsgo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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()

Expand Down
6 changes: 6 additions & 0 deletions lsp/vtsls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,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()

Expand Down