feat: add toml and markdown formatters

This commit is contained in:
2026-06-07 21:38:04 -05:00
parent 7a05bf3d5e
commit d40b80a910
7 changed files with 32 additions and 16 deletions
+3 -3
View File
@@ -199,9 +199,9 @@
};
# Formatter for nix files, available through 'nix fmt'
treefmt = lib.mkIf cfg.formatter.enable {
programs.alejandra.enable = lib.mkIf cfg.formatter.nix true;
programs.rustfmt = lib.mkIf cfg.formatter.rust {
treefmt.programs = lib.mkIf cfg.formatter.enable {
alejandra.enable = lib.mkIf cfg.formatter.nix true;
rustfmt = lib.mkIf cfg.formatter.rust {
enable = true;
edition = manifest.edition;
};
+8
View File
@@ -0,0 +1,8 @@
[global]
disable = [
# line length limits
"MD013",
]
[MD057]
absolute-links = "relative_to_roots"
-1
View File
@@ -15,4 +15,3 @@ tracing-subscriber = "*"
clap = { version = "*", features = ["derive"] }
figment = { version = "*", features = ["toml", "env", "json"] }