feat: add mdformat

This commit is contained in:
2025-12-02 12:37:42 +01:00
parent 755ec71e01
commit 06d1928f29
2 changed files with 75 additions and 0 deletions

View File

@@ -271,6 +271,13 @@ vim.api.nvim_create_autocmd('TextYankPost', {
require("conform").setup({
formatters_by_ft = {
html = { "prettier" },
svg = { "prettier" },
markdown = { "mdformat" },
},
formatters = {
mdformat = {
args = { "--wrap", "80", "-" },
}
},
default_format_opts = {
lsp_format = "fallback",