Commit graph

10 commits

Author SHA1 Message Date
Bruno BELANYI d253cca017 Add script for neovim tests
This will be used to check the indentation queries.
2022-06-13 10:03:58 +02:00
Bruno BELANYI b998075f2d Use play-ground enabled 'tree-sitter' in devShell
This is actually quite useful for debugging it turns out :-).
2022-06-03 20:00:32 +02:00
Bruno BELANYI 752f941589 Fix 'nix flake check'
All checks were successful
continuous-integration/drone Build is passing
Turns out that 'tree-sitter' is not wrapped to have node and a compiler
available, because nixpkgs assumes that grammars already include
generated files.

So wrap it manually and use that in our pre-commit/checks.
2022-06-03 16:00:13 +02:00
Bruno BELANYI 02f89ac524 Refactor nix package
Introduce an overlay, and use the existing 'tree-sitter' package
machinery to extend it with this grammar.

Expose the extended 'tree-sitter' as part of the flake packages.
2022-06-03 15:58:16 +02:00
Bruno BELANYI 964d796b4b Fix 'nix flake check' evaluation
I should figure out why 'pre-commit' even needs dotnet at some point...
2022-06-03 15:58:12 +02:00
Bruno BELANYI 6cec0e4a68 Add nix package 2022-06-03 11:59:30 +02:00
Bruno BELANYI 5866cd4a82 Add 'tree-sitter' pre-commit hook
Make sure you don't break anything when committing.
2022-06-02 22:20:37 +02:00
Bruno BELANYI b3e91d9aad Add 'tree-sitter-files' pre-commit hook
This is too ensure that generated files are always in lock-step with the
grammar.
2022-06-02 22:20:37 +02:00
Bruno BELANYI 8f752e0f94 Add 'clang-format' pre-commit hook 2022-06-02 22:20:37 +02:00
Bruno BELANYI 00f3013af0 Bootstrap nix flake environment 2022-06-01 16:23:17 +02:00