Adds shfmt as formatter for sh and forces 2 space intend with switch_case_indent and binary_next_line options.

This commit is contained in:
Temporary vm 2025-12-06 19:26:16 +02:00
parent 1596889836
commit f4b53881cc
1 changed files with 6 additions and 0 deletions

View File

@ -760,12 +760,18 @@ require('lazy').setup({
json = { 'prettierd' },
css = { 'prettierd' },
yaml = { 'prettierd' },
sh = { 'shfmt' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },
},
formatters = {
shfmt = {
prepend_args = { '-i', '2', '-ci', '-bn' },
},
},
},
},