From e51199cffa290e0bf50a632fcc8eb1ee437801f9 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 6 Jun 2024 16:15:37 +0200 Subject: [PATCH] fix(prettier): fix prettier config detection. Closes #3497 --- 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..13cdf433 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]