Add markdown conform configuration to softwrap at 120 chars.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user