Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ functions.
<!-- `> bash ./supported-programs.sh` -->

<!-- BEGIN mdsh -->
`treefmt-nix` currently supports 126 formatters:
`treefmt-nix` currently supports 128 formatters:

* [actionlint](programs/actionlint.nix)
* [aiken](programs/aiken.nix)
Expand Down Expand Up @@ -340,6 +340,7 @@ functions.
* [terraform](programs/terraform.nix)
* [texfmt](programs/texfmt.nix)
* [tilt](programs/tilt.nix)
* [tombi](programs/tombi.nix)
* [toml-sort](programs/toml-sort.nix)
* [typos](programs/typos.nix)
* [typstyle](programs/typstyle.nix)
Expand Down
6 changes: 6 additions & 0 deletions examples/formatter-tombi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example generated by ../examples.sh
[formatter.tombi]
command = "tombi"
excludes = []
includes = ["*.toml"]
options = ["format"]
12 changes: 12 additions & 0 deletions programs/tombi.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ mkFormatterModule, ... }:
{
meta.maintainers = [ ];

imports = [
(mkFormatterModule {
name = "tombi";
args = [ "format" ];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--offline is needed by default to avoid failures on flake checks due to networking restrictions on nix sandboxing

includes = [ "*.toml" ];
})
];
}