Skip to content

Commit

Permalink
feat: add typstfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Dec 21, 2023
1 parent 007a45d commit 156b100
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ use nix
- [taplo fmt](https://github.com/tamasfe/taplo)
## Typst
- [typstfmt](https://github.com/astrale-sharp/typstfmt)
## Fortran
- [fprettify](https://github.com/pseewald/fprettify)
Expand Down
7 changes: 7 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2234,5 +2234,12 @@ in
entry = "${tools.conform}/bin/conform enforce --commit-msg-file";
stages = [ "commit-msg" ];
};

typstfmt = {
name = "typstfmt";
description = "format typst";
entry = "${tools.typstfmt}/bin/typstfmt";
files = "\\.typ$";
};
};
}
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
, tflint
, topiary ? null ## Added in nixpkgs on Dec 2, 2022
, typos
, typstfmt
, yamllint
, writeScript
, writeText
Expand Down Expand Up @@ -127,6 +128,7 @@ in
tagref
topiary
typos
typstfmt
yamllint
;
inherit (elmPackages) elm-format elm-review elm-test;
Expand Down

0 comments on commit 156b100

Please sign in to comment.