From d0a4dd2592dcb8089d770e6dc65d31d08c8ed805 Mon Sep 17 00:00:00 2001 From: Christopher Guay Date: Tue, 10 Nov 2026 08:30:57 -0500 Subject: [PATCH 1/2] Add TOML formatting with shared Taplo configuration --- configs/taplo.toml | 6 ++++++ treefmt.nix | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 configs/taplo.toml diff --git a/configs/taplo.toml b/configs/taplo.toml new file mode 100644 index 0000000..046467d --- /dev/null +++ b/configs/taplo.toml @@ -0,0 +1,6 @@ +[formatting] +array_auto_collapse = true +array_auto_expand = true +column_width = 100 +indent_string = " " +inline_table_expand = false diff --git a/treefmt.nix b/treefmt.nix index 6ae8c93..f64c7f8 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -63,6 +63,10 @@ in settings = readTOML ./configs/stylua.toml; }; nixfmt.enable = true; + taplo = { + enable = true; + settings = readTOML ./configs/taplo.toml; + }; sqlfluff.enable = true; }; From 89b28889650678842d669c16a70723fb5a69eba6 Mon Sep 17 00:00:00 2001 From: Christopher Guay Date: Tue, 10 Nov 2026 08:51:40 -0500 Subject: [PATCH 2/2] Update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f84f86f..af91dfb 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ configs/ rustfmt.toml stylua.toml sqlfluff.ini + ... ``` The language mapping is: @@ -46,4 +47,5 @@ The language mapping is: | Shell | shfmt | | Lua/Luau | StyLua | | Nix | nixfmt | +| Toml | taplo | | SQL | SQLFluff, PostgreSQL dialect |