format markdown

This commit is contained in:
2026-08-23 14:23:40 +02:00
parent b18692000e
commit 5ed83362f0
@@ -20,6 +20,14 @@ require("conform").setup({
h = { filter = function() return false end }
},
formatters = {
prettier = {
prepend_args = function(_, ctx)
if vim.bo[ctx.buf].filetype == "markdown" then
return { "--prose-wrap=always", "--print-width=80" }
end
return {}
end,
},
dart_format = {
command = function(_, ctx)
return dart.executable(ctx.filename)