1
0

treefmt.nix 434 B

123456789101112131415
  1. {
  2. projectRootFile = "Cargo.toml";
  3. programs = {
  4. alejandra.enable = true; # nix
  5. rustfmt.enable = true; # rust
  6. shellcheck.enable = true; # bash/shell
  7. deadnix.enable = true; # find dead nix code
  8. taplo.enable = true; # toml
  9. yamlfmt.enable = true; # yaml
  10. };
  11. settings = {
  12. formatter.shellcheck.includes = ["*.sh" "./completions/bash/eza"];
  13. formatter.rustfmt.excludes = ["src/options/flags.rs"];
  14. };
  15. }