mirror of
https://github.com/iofq/nvim-treesitter-main.git
synced 2026-01-23 01:15:17 -06:00
push built grammars to cachix
This commit is contained in:
parent
976859670c
commit
920cebbd36
2 changed files with 24 additions and 0 deletions
6
.github/workflows/main.yaml
vendored
6
.github/workflows/main.yaml
vendored
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
18
README.md
18
README.md
|
|
@ -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`:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue