Skip to content

Commit

Permalink
Merge pull request #379 from storopoli/js/typstfmt
Browse files Browse the repository at this point in the history
feat: add typstfmt
  • Loading branch information
domenkozar authored Dec 24, 2023
2 parents 007a45d + 88f314e commit 7f35ec3
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.typst-fmt}/bin/typst-fmt";
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
, typst-fmt
, yamllint
, writeScript
, writeText
Expand Down Expand Up @@ -127,6 +128,7 @@ in
tagref
topiary
typos
typst-fmt
yamllint
;
inherit (elmPackages) elm-format elm-review elm-test;
Expand Down

0 comments on commit 7f35ec3

Please sign in to comment.