more formatters, some cleaning
This commit is contained in:
parent
4653116fac
commit
97b8a1a802
4 changed files with 120 additions and 192 deletions
|
@ -6,6 +6,8 @@ return {
|
|||
-- Define your formatters
|
||||
formatters_by_ft = {
|
||||
yaml = { "yamlfmt" },
|
||||
markdown = { "mdformat" },
|
||||
bash = { "shfmt" },
|
||||
--lua = { "stylua" },
|
||||
--python = { "isort", "black" },
|
||||
--javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
|
@ -18,8 +20,8 @@ return {
|
|||
--format_on_save = { timeout_ms = 500 },
|
||||
-- Customize formatters
|
||||
formatters = {
|
||||
shfmt = {
|
||||
prepend_args = { "-i", "2" },
|
||||
yamlfmt = {
|
||||
prepend_args = { "-formatter", "retain_line_breaks=true,indentless_arrays=true" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue