Add markdown conform configuration to softwrap at 120 chars.

This commit is contained in:
2025-11-10 09:30:39 -08:00
parent 438a745221
commit 9ecf270cec
2 changed files with 13 additions and 1 deletions

View File

@@ -2,8 +2,21 @@ return {
{
'stevearc/conform.nvim',
opts = {
formatters = {
prettier_markdown = {
command = 'prettier',
args = {
'--parser=markdown',
'--prose-wrap',
'always',
'--print-width',
'120',
},
},
},
formatters_by_ft = {
lua = { 'stylua' },
markdown = { 'prettier_markdown' },
javascript = { 'prettier' },
},
format_on_save = {