feat: use yamlfmt for yaml with param in command line
This commit is contained in:
parent
26bed1f314
commit
ab6b236960
1 changed files with 10 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue