add treefmt

This commit is contained in:
SnO2WMaN 2022-08-17 06:06:44 +09:00
parent 443744f564
commit c3a123cd68
2 changed files with 16 additions and 1 deletions

View file

@ -42,8 +42,11 @@
gcc
rustc
cargo
rustfmt
# Dev
treefmt # cli to run all formatters
alejandra # Nix formatter
# rustfmt # Rust Formatter
# taplo-cli # TOML formatter
];
};
}

12
treefmt.toml Normal file
View file

@ -0,0 +1,12 @@
[formatter.alejandra]
command = "alejandra"
includes = ["*.nix"]
# [formatter.taplo]
# command = "taplo"
# options = ["format"]
# includes = ["*.toml"]
# [formatter.rustfmt]
# command = "rustfmt"
# includes = ["*.rs"]