From 9eec03d890f7846e6f47e12ebbe369c7177fd5f1 Mon Sep 17 00:00:00 2001 From: Peter Benjamin Date: Tue, 21 May 2024 14:03:43 -0700 Subject: [PATCH] feat(markdown): configure conform for markdown files (#2308) --- lua/lazyvim/plugins/extras/lang/markdown.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/markdown.lua b/lua/lazyvim/plugins/extras/lang/markdown.lua index e290f174..dcffbad0 100644 --- a/lua/lazyvim/plugins/extras/lang/markdown.lua +++ b/lua/lazyvim/plugins/extras/lang/markdown.lua @@ -5,6 +5,15 @@ return { root = "README.md", }) end, + { + "stevearc/conform.nvim", + optional = true, + opts = { + formatters_by_ft = { + markdown = { { "prettierd", "prettier" }, "markdownlint", "markdown-toc" }, + }, + }, + }, { "nvim-treesitter/nvim-treesitter", opts = function(_, opts)