From 1ddf08931ed6a0ef2db0ad932decd23dbe4508c2 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:45:38 +0300 Subject: [PATCH] fix(prettier): correctly recognize patterns in condition --- lua/lazyvim/plugins/extras/formatting/prettier.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/formatting/prettier.lua b/lua/lazyvim/plugins/extras/formatting/prettier.lua index 3d9755e3..72a8c439 100644 --- a/lua/lazyvim/plugins/extras/formatting/prettier.lua +++ b/lua/lazyvim/plugins/extras/formatting/prettier.lua @@ -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]