Skip to content

Commit

Permalink
fix: Add retain_line_breaks as default (yamlfmt)
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Mar 10, 2024
1 parent 7b64da6 commit 8e92530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/config/defaults/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return {
prepend_args = { "--indent-type", "Spaces", "--indent-width", "2" }, -- 2 spaces instead of tab
}
conform.formatters.yamlfmt = {
prepend_args = { "-formatter", "indent=2,include_document_start=true" },
prepend_args = { "-formatter", "indent=2,include_document_start=true,retain_line_breaks_single=true" },
}
vim.g.disable_autoformat = vim.g.config.plugins.conform.disable_autoformat
vim.api.nvim_create_user_command("ToggleAutoformat", function()
Expand Down

0 comments on commit 8e92530

Please sign in to comment.