Skip to content

Conversation

@anntnzrb
Copy link
Contributor

Summary

  • Add tree-sitter parser config for Nix files
  • Use ast-grep WASM (pinned SHA) as temporary source until official release
  • Include highlights.scm and locals.scm from nvim-treesitter

Why ast-grep?

Official tree-sitter-nix doesn't publish WASM binaries (nix-community/tree-sitter-nix#66 open 1.5+ years). ast-grep is a reliable alternative:

  • 11k+ stars, actively maintained
  • WASM compiled by main maintainer
  • Commit SHA pinned for stability

When upstream publishes official WASM, it's a one-line URL swap.

Closes #6385

@rekram1-node rekram1-node merged commit 5efb1c7 into sst:dev Dec 29, 2025
2 checks passed
anntnzrb added a commit to anntnzrb/opencode-1 that referenced this pull request Dec 29, 2025
v1truv1us pushed a commit to v1truv1us/opencode that referenced this pull request Dec 29, 2025
hk9890 pushed a commit to hk9890/opencode that referenced this pull request Jan 1, 2026
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.

[FEATURE]: Add Nix syntax highlighting

2 participants