Simplify 'clang-format' pre-commit hook
This commit is contained in:
parent
81d0730632
commit
bc0f83fdeb
|
@ -104,12 +104,9 @@
|
||||||
hooks = {
|
hooks = {
|
||||||
clang-format = {
|
clang-format = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "clang-format";
|
|
||||||
entry = "${pkgs.clang-tools}/bin/clang-format -style=file -i";
|
|
||||||
types = [ "text" "c" ];
|
types = [ "text" "c" ];
|
||||||
# I don't care for generated files' formatting
|
# I don't care for generated files' formatting
|
||||||
excludes = [ "src/parser.c" "src/tree_sitter/parser.h" ];
|
excludes = [ "src/parser.c" "src/tree_sitter/parser.h" ];
|
||||||
language = "system";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs-fmt = {
|
nixpkgs-fmt = {
|
||||||
|
|
Loading…
Reference in a new issue