feat: use yamlfmt for yaml with param in command line

This commit is contained in:
Adrien Waksberg 2024-04-24 16:32:55 +02:00
parent 26bed1f314
commit ab6b236960

View file

@ -7,7 +7,16 @@ local options = {
lua = { "stylua" },
markdown = { "prettier" },
sh = { "shfmt" },
yaml = { "prettier" },
yaml = { "yamlfmt" },
},
formatters = {
yamlfmt = {
prepend_args = {
"-formatter",
"include_document_start=true,retain_line_breaks=true,retain_line_breaks_single=true,max_line_length=120,scan_folded_as_literal=true",
},
},
},
format_on_save = {