diff --git a/README.md b/README.md index abd8f55b..be033692 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/modules/hooks.nix b/modules/hooks.nix index e8f202d9..241597ce 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -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.typst-fmt}/bin/typst-fmt"; + files = "\\.typ$"; + }; }; } diff --git a/nix/tools.nix b/nix/tools.nix index 4971672e..fb889a45 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -63,6 +63,7 @@ , tflint , topiary ? null ## Added in nixpkgs on Dec 2, 2022 , typos +, typst-fmt , yamllint , writeScript , writeText @@ -127,6 +128,7 @@ in tagref topiary typos + typst-fmt yamllint ; inherit (elmPackages) elm-format elm-review elm-test;