Skip to content

Commit db5382e

Browse files
committed
feat: add vite config to root markers
forgot that vite config can be also a marker if it has vite-plus import, added
1 parent 6728229 commit db5382e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lsp/oxfmt.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ return {
5656
{ 'oxfmt', 'vite%-plus' },
5757
fname
5858
)
59+
root_markers = util.root_markers_with_field(root_markers, { 'vite.config.ts' }, 'vite%-plus', fname)
5960
on_dir(vim.fs.dirname(vim.fs.find(root_markers, { path = fname, upward = true })[1]))
6061
end,
6162
}

lsp/oxlint.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ return {
5858
{ 'oxlint', 'vite%-plus' },
5959
fname
6060
)
61+
root_markers = util.root_markers_with_field(root_markers, { 'vite.config.ts' }, 'vite%-plus', fname)
6162
on_dir(vim.fs.dirname(vim.fs.find(root_markers, { path = fname, upward = true })[1]))
6263
end,
6364
workspace_required = true,

0 commit comments

Comments
 (0)