mirror of
https://github.com/iofq/nvim-treesitter-main.git
synced 2026-01-23 09:25:17 -06:00
Compare commits
5 commits
d7acb39fda
...
cfc655da9d
| Author | SHA1 | Date | |
|---|---|---|---|
| cfc655da9d | |||
| 2a90b27b60 | |||
| 0526fefb04 | |||
| 0690686f68 | |||
| f99c66a95b |
2 changed files with 26 additions and 1 deletions
25
.github/workflows/update.yaml
vendored
Normal file
25
.github/workflows/update.yaml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
name: update treesitter grammars
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 3 * * 0"
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||||
|
- run: nix flake update
|
||||||
|
- run: nix develop --command "generate-parsers"
|
||||||
|
- uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.PAT }}
|
||||||
|
branch: ci/update
|
||||||
|
commit-message: "chore: update flake inputs + generated.nix"
|
||||||
|
title: "chore: update flake inputs + generated.nix"
|
||||||
|
body: "This PR is auto-generated."
|
||||||
|
|
@ -58,7 +58,7 @@ overlays = [
|
||||||
f: p: {
|
f: p: {
|
||||||
nvim-treesitter = p.nvim-treesitter.withAllGrammars; # or withPlugins...
|
nvim-treesitter = p.nvim-treesitter.withAllGrammars; # or withPlugins...
|
||||||
# also redefine nvim-treesitter-textobjects (any other plugins that depend on nvim-treesitter)
|
# also redefine nvim-treesitter-textobjects (any other plugins that depend on nvim-treesitter)
|
||||||
nvim-treesitter-textobjects = p.nvim-treesitter-textobjects.override {
|
nvim-treesitter-textobjects = p.nvim-treesitter-textobjects.overrideAttrs {
|
||||||
dependencies = [ f.nvim-treesitter ];
|
dependencies = [ f.nvim-treesitter ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue