From a2cc1beda26ac1527d46ac65b91be4d919b8d03d Mon Sep 17 00:00:00 2001 From: joelazar Date: Sat, 1 Aug 2026 22:56:53 +0200 Subject: [PATCH] :wrench: ensure prettier runs for markdown files --- lua/plugins/conform.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index ae5bacc..e54c8e8 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -28,6 +28,12 @@ return { if has_biome_config(ctx) then return false end + -- Markdown has no other unconditional formatter in LazyVim's chain + -- (markdownlint-cli2 needs diagnostics, markdown-toc needs a toc marker), + -- so always let prettier run, even without a prettier config. + if vim.bo[ctx.buf].filetype:match("^markdown") then + return true + end if prev_cond then return prev_cond(self, ctx) end -- 2.51.2