push built grammars to cachix
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
iofq 2025-10-19 13:39:47 -05:00
parent 976859670c
commit 2fdf59a63d
2 changed files with 24 additions and 0 deletions

View file

@ -9,6 +9,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- uses: cachix/cachix-action@master
if: github.ref == 'refs/heads/master'
with:
name: nvim-treesitter-main
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check - run: nix flake check
- run: nix run nixpkgs#nixfmt **/*.nix - run: nix run nixpkgs#nixfmt **/*.nix

View file

@ -69,6 +69,24 @@ overlays = [
If you need the unpatched `nvim-treesitter` plugin without any parsers/queries bundled, even after you overlay it, you can use the `nvim-treesitter-unwrapped` output of this overlay. If you need the unpatched `nvim-treesitter` plugin without any parsers/queries bundled, even after you overlay it, you can use the `nvim-treesitter-unwrapped` output of this overlay.
## Cache
Add our `cachix` repo to avoid needing to build grammars locally.
```nix
nix = {
settings = {
substituters = [
"https://nvim-treesitter-main.cachix.org"
];
trusted-public-keys = [
"nvim-treesitter-main.cachix.org-1:cbwE6blfW5+BkXXyeAXoVSu1gliqPLHo2m98E4hWfZQ="
];
};
};
```
## Updating ## Updating
To update the list of parsers in `generated.nix`: To update the list of parsers in `generated.nix`: