mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 19:28:59 +02:00
fix(prettier): fix prettier config detection. Closes #3497
This commit is contained in:
parent
3654098520
commit
e51199cffa
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue