From 90ea27b02886bef341b54a83d85c27a2c61bb527 Mon Sep 17 00:00:00 2001 From: Moritz Sauter Date: Fri, 23 Jan 2026 16:39:31 +0100 Subject: [PATCH] feat(tombi): Add tombi formatter --- README.md | 3 ++- examples/formatter-tombi.toml | 6 ++++++ programs/tombi.nix | 12 ++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 examples/formatter-tombi.toml create mode 100644 programs/tombi.nix diff --git a/README.md b/README.md index 6bd23c8..b2a10a4 100644 --- a/README.md +++ b/README.md @@ -222,7 +222,7 @@ functions. -`treefmt-nix` currently supports 126 formatters: +`treefmt-nix` currently supports 128 formatters: * [actionlint](programs/actionlint.nix) * [aiken](programs/aiken.nix) @@ -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) diff --git a/examples/formatter-tombi.toml b/examples/formatter-tombi.toml new file mode 100644 index 0000000..27c57e9 --- /dev/null +++ b/examples/formatter-tombi.toml @@ -0,0 +1,6 @@ +# Example generated by ../examples.sh +[formatter.tombi] +command = "tombi" +excludes = [] +includes = ["*.toml"] +options = ["format"] diff --git a/programs/tombi.nix b/programs/tombi.nix new file mode 100644 index 0000000..689ff83 --- /dev/null +++ b/programs/tombi.nix @@ -0,0 +1,12 @@ +{ mkFormatterModule, ... }: +{ + meta.maintainers = [ ]; + + imports = [ + (mkFormatterModule { + name = "tombi"; + args = [ "format" ]; + includes = [ "*.toml" ]; + }) + ]; +}