fix: address PR #49 CodeRabbit review comments

This commit is contained in:
2026-04-11 15:49:18 -07:00
parent 95f858292e
commit 9ce5de2f22
19 changed files with 337 additions and 26 deletions

View File

@@ -71,7 +71,13 @@ function M.create(ctx)
end
for _, dir in ipairs(candidates) do
if file_exists(join_path(dir, "config.jsonc")) or file_exists(join_path(dir, "config.json")) or file_exists(dir) then
if file_exists(join_path(dir, "config.jsonc")) or file_exists(join_path(dir, "config.json")) then
return dir
end
end
for _, dir in ipairs(candidates) do
if file_exists(dir) then
return dir
end
end