Skip to content

Commit 769a234

Browse files
authored
Merge pull request #387 from phip1611/typos
typos: unset pass_filenames
2 parents b026563 + b568e6d commit 769a234

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/hooks.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ in
892892
type = types.str;
893893
description = lib.mdDoc "Path to a custom config file.";
894894
default = "";
895+
example = ".typos.toml";
895896
};
896897

897898
diff =
@@ -2153,6 +2154,11 @@ in
21532154
in
21542155
"${tools.typos}/bin/typos ${cmdArgs}${lib.optionalString settings.typos.diff " --diff"}${lib.optionalString settings.typos.hidden " --hidden"}";
21552156
types = [ "text" ];
2157+
# Typos is supposed to run on the whole tree. If this is set to true,
2158+
# the system gets stuck for large projects due to very high memory
2159+
# consumption. The restriction on with files typos run, should be
2160+
# specified in the typos config file.
2161+
pass_filenames = false;
21562162
};
21572163
typstfmt = {
21582164
name = "typstfmt";

0 commit comments

Comments
 (0)