Skip to content

Commit

Permalink
fix(vim): YAML formatting
Browse files Browse the repository at this point in the history
Do not add document start because formatprg could be used on a hunk of
code in a middle of a document.
  • Loading branch information
kirillmorozov committed May 9, 2024
1 parent 9d69c2c commit 12f6c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ if executable("shfmt")
endif

if executable("yamlfmt")
autocmd FileType yaml setlocal formatprg=yamlfmt\ -formatter\ include_document_start=true\ -formatter\ retain_line_breaks=true\ -in
autocmd FileType yaml setlocal formatprg=yamlfmt\ -formatter\ retain_line_breaks=true\ -in
endif

if isdirectory(".git")
Expand Down

0 comments on commit 12f6c91

Please sign in to comment.