Add 'tree-sitter-files' pre-commit hook

This is too ensure that generated files are always in lock-step with the
grammar.
This commit is contained in:
Bruno BELANYI 2022-06-02 17:02:29 +02:00
parent 8f752e0f94
commit b3e91d9aad

View file

@ -60,6 +60,13 @@
nixpkgs-fmt = { nixpkgs-fmt = {
enable = true; enable = true;
}; };
tree-sitter-files = {
enable = true;
name = "tree-sitter generated files";
entry = "${pkgs.tree-sitter}/bin/tree-sitter generate";
pass_filenames = false;
};
}; };
}; };
}; };