Skip to content

feat(build): bundle all tree-sitter grammars at build time - #43496

Open
jpds wants to merge 2 commits into
anomalyco:devfrom
jpds:tree-sitter-grammar-bundling
Open

feat(build): bundle all tree-sitter grammars at build time#43496
jpds wants to merge 2 commits into
anomalyco:devfrom
jpds:tree-sitter-grammar-bundling

Conversation

@jpds

@jpds jpds commented Aug 19, 2026

Copy link
Copy Markdown

Issue for this PR

I guess somewhat related to the offline / air-gap features: #18492

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Takes the tree-sitter grammars and bundles them in at build time rather than calling out to the internet at runtime when a file is written. Also resolved an issue with a new grammar from unpkg.com not loading for some unknown reason, but worked fine once it had been bundled in by this mechanism.

Also changes the URLs from master to a fixed tag or latest Git commit hash for the nvim-treesitter repo for better reproducibility / change-control.

How did you verify your code works?

Deployed the Nix flake and verified the LLM writes to a file whilst the correct syntax highlighting is displayed.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@jpds
jpds force-pushed the tree-sitter-grammar-bundling branch from b5c6c83 to 0dc9bc7 Compare August 19, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant