eza/treefmt.nix
Christina Sørensen cb15b12984 style: switch to nixfmt rfc style, format tree
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-26 09:24:39 +02:00

27 lines
674 B
Nix

{
projectRootFile = "Cargo.toml";
programs = {
nixfmt.enable = true; # nix
statix.enable = true; # nix static analysis
deadnix.enable = true; # find dead nix code
rustfmt.enable = true; # rust
shellcheck.enable = true; # bash/shell
taplo.enable = true; # toml
yamlfmt.enable = true; # yaml
};
settings = {
formatter = {
shellcheck = {
includes = [
"*.sh"
"./completions/bash/eza"
];
excludes = [ ".envrc" ];
};
rustfmt.excludes = [ "src/options/flags.rs" ];
taplo.excludes = [ "tests/ptests/*.toml" ];
yamlfmt.excludes = [ "./powertest.yaml" ];
};
};
}