feat(editors): tree-sitter highlighting for Helix and Neovim, Zed coming soon #251
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!251
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/editors-tree-sitter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step T2 of the IDE satellites plan, plus the Zed announcement in the docs.
Helix and Neovim: tree-sitter highlighting
Both build tree-sitter-gram at the same pinned commit (
854cfed, tagv0.1.0).editors/neovim/build-parser.shbuildsparser/gram.sowith a C compiler and copies the queries into the Neovim config;editors/neovim/gram-treesitter.luastarts highlighting and section folds.gram.lua(LSP) is unchanged. Works with Neovim 0.11 and 0.12.[[grammar]]block inlanguages.toml; the comment gives the fetch/build commands and the copy of the queries, which Helix does not install.c++), even for a grammar written in C;hx --grammar fetchfetches every grammar unlessuse-grammarslimits it;hx --healthreports the parser even when none was built.Checks
editors.test.ts: contracts for the new files, and Helix and Neovim pinned to the same repository and commit.editors/smoke/run.sh): Neovim builds the grammar and checks captures (section header, ingredient, quantity, reference) and a section fold headless; Helix buildsgram.soand checksHighlight queries: ✓. The image gainsgcc gcc-c++.Docs (en + fr)
No changeset:
editors/is not published and@gram-lang/docsis private.