fix(prettier): fix prettier config detection. Closes #3497
This commit is contained in:
@ -58,7 +58,7 @@ return {
|
||||
end
|
||||
if enabled[ctx.filename] == nil then
|
||||
enabled[ctx.filename] = vim.fs.find(function(name, path)
|
||||
return name:match("^%.prettierrc%.") or name:match("^prettier%.config%.")
|
||||
return name:match("^%.prettierrc%.?") or name:match("^prettier%.config%.")
|
||||
end, { path = ctx.filename, upward = true })[1] ~= nil
|
||||
end
|
||||
return enabled[ctx.filename]
|
||||
|
Reference in New Issue
Block a user