Passing any formatting option to shfmt causes it to ignore the EditorConfig-based formatting config (see “If any parser or printer flags are given to the tool, no EditorConfig files will be used” in the README.
treefmt-nix will always pass -i to shfmt, causing it to ignore the actual configuration. There is no option to “unset” programs.shfmt.indent_size.
I think indent_size should allow (and default to) null, only passing -i if explicitly requested.
Passing any formatting option to
shfmt
causes it to ignore the EditorConfig-based formatting config (see “If any parser or printer flags are given to the tool, no EditorConfig files will be used” in the README.treefmt-nix will always pass
-i
toshfmt
, causing it to ignore the actual configuration. There is no option to “unset”programs.shfmt.indent_size
.I think
indent_size
should allow (and default to)null
, only passing-i
if explicitly requested.