Skip to content

Commit aa42d75

Browse files
feat(oxfmt): jsonc root marker #4312
1 parent 8bda072 commit aa42d75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lsp/oxfmt.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ return {
4545

4646
-- Oxfmt resolves configuration by walking upward and using the nearest config file
4747
-- to the file being processed. We therefore compute the root directory by locating
48-
-- the closest `.oxfmtrc.json` (or `package.json` fallback) above the buffer.
49-
local root_markers = util.insert_package_json({ '.oxfmtrc.json' }, 'oxfmt', fname)[1]
48+
-- the closest `.oxfmtrc.json` / `.oxfmtrc.jsonc` (or `package.json` fallback) above the buffer.
49+
local root_markers = util.insert_package_json({ '.oxfmtrc.json', '.oxfmtrc.jsonc' }, 'oxfmt', fname)
5050
on_dir(vim.fs.dirname(vim.fs.find(root_markers, { path = fname, upward = true })[1]))
5151
end,
5252
}

0 commit comments

Comments
 (0)