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 | 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; };