more formatters, some cleaning
All checks were successful
Build neovim image / build-neovim-amd64 (push) Successful in 9m11s
Build neovim image / build-neovim-arm64 (push) Successful in 10m54s
Build neovim image / update-images-manifest (push) Successful in 19s

This commit is contained in:
Maciej Lebiest 2024-12-17 20:37:16 +01:00
parent 4653116fac
commit 97b8a1a802
4 changed files with 120 additions and 192 deletions

View file

@ -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" },
},
},
}