mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(prettier): correctly recognize patterns in condition
This commit is contained in:
parent
ed93ce9c15
commit
1ddf08931e
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
Reference in a new issue