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: 1 addition & 2 deletions 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 120 formatters:
`treefmt-nix` currently supports 119 formatters:

* [actionlint](programs/actionlint.nix)
* [aiken](programs/aiken.nix)
Expand Down Expand Up @@ -336,7 +336,6 @@ functions.
* [texfmt](programs/texfmt.nix)
* [toml-sort](programs/toml-sort.nix)
* [typos](programs/typos.nix)
* [typstfmt](programs/typstfmt.nix)
* [typstyle](programs/typstyle.nix)
* [xmllint](programs/xmllint.nix)
* [yamlfmt](programs/yamlfmt.nix)
Expand Down
6 changes: 6 additions & 0 deletions examples/formatter-actionlint.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example generated by ../examples.sh
[formatter.actionlint]
command = "actionlint"
excludes = []
includes = [".github/workflows/*.yml", ".github/workflows/*.yaml"]
options = []
6 changes: 0 additions & 6 deletions examples/formatter-typstfmt.toml

This file was deleted.

6 changes: 6 additions & 0 deletions examples/formatter-zig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example generated by ../examples.sh
[formatter.zig]
command = "zig"
excludes = []
includes = ["*.zig", "*.zon"]
options = ["fmt"]
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions programs/actionlint.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib, mkFormatterModule, ... }:
{ mkFormatterModule, ... }:
{
meta.maintainers = [ "katexochen" ];
meta.brokenPlatforms = lib.platforms.darwin;

imports = [
(mkFormatterModule {
Expand Down
14 changes: 0 additions & 14 deletions programs/typstfmt.nix

This file was deleted.

4 changes: 1 addition & 3 deletions programs/zig.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{ lib, mkFormatterModule, ... }:
{ mkFormatterModule, ... }:
{
meta.maintainers = [ ];
# Broken on macOS
meta.brokenPlatforms = lib.platforms.darwin;

imports = [
(mkFormatterModule {
Expand Down
6 changes: 3 additions & 3 deletions treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
settings.global.excludes = [ "*.toml" ];

programs.deadnix.enable = true;
programs.deno.enable = pkgs.hostPlatform.system != "riscv64-linux";
programs.deno.enable = pkgs.stdenv.hostPlatform.system != "riscv64-linux";
programs.mdsh.enable = true;
programs.nixfmt.enable = true;
programs.shellcheck.enable = pkgs.hostPlatform.system != "riscv64-linux";
programs.shfmt.enable = pkgs.hostPlatform.system != "riscv64-linux";
programs.shellcheck.enable = pkgs.stdenv.hostPlatform.system != "riscv64-linux";
programs.shfmt.enable = pkgs.stdenv.hostPlatform.system != "riscv64-linux";
programs.yamlfmt.enable = true;
}