Skip to main content

treefmt

Common formatters

You can append these common formatter configurations to treefmt.toml to get your configuration started.

mdformat

[formatter.mdformat]
command = "mdformat"
includes = ["*.md"]

nixfmt

[formatter.nixfmt]
command = "nixfmt"
includes = ["*.nix"]

toml-sort

[formatter.toml-sort]
command = "toml-sort"
includes = ["*.toml"]