From 5866cd4a82765c445838dad69f0da143400bea8d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 2 Jun 2022 17:04:32 +0200 Subject: [PATCH] Add 'tree-sitter' pre-commit hook Make sure you don't break anything when committing. --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 6d65207..190dd27 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,13 @@ enable = true; }; + tree-sitter = { + enable = true; + name = "tree-sitter tests"; + entry = "${pkgs.tree-sitter}/bin/tree-sitter test"; + pass_filenames = false; + }; + tree-sitter-files = { enable = true; name = "tree-sitter generated files";