Zed editor extension for the Gram recipe language (.gram): syntax highlighting and LSP support.
https://gram-lang.org
- Rust 58%
- Tree-sitter Query 26.5%
- Shell 15.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
CI / Extension, queries & options (push) Successful in 1m38s
|
||
| .forgejo/workflows | ||
| languages/gram | ||
| scripts | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| extension.toml | ||
| LICENSE | ||
| README.md | ||
Gram for Zed
Gram recipe DSL support in Zed: syntax highlighting, section outline, diagnostics, completion, hover, formatting, and symbol rename.
Website · Documentation · Editors guide
Note
Primary development happens on Forgejo, with read-only automatic mirrors on GitHub and Codeberg. Issues and pull requests are handled on Forgejo.
Installation
Open Zed's Extensions panel (zed: extensions) and install Gram.
- Highlighting and outline come from
tree-sitter-gram, at the rev pinned inextension.toml. - Language intelligence comes from
@gram-lang/language-server(requires version 1.6.0 or later). Ifgram-language-serveris already in yourPATH, Zed uses it directly; otherwise the extension installs the latest version from npm and runs it with Zed's bundled Node. - The extension requests no webview panels (
views: false): the side-by-side recipe preview and run sheet are currently available in VS Code / Open VSX and the CLI (gram view,gram plan).
Development
scripts/queries.sh # copy queries/zed/*.scm of tree-sitter-gram, at the pinned rev, into languages/gram/
scripts/queries.sh --check # fail if languages/gram/ is out of date (CI)
cargo build --release --target wasm32-wasip2
Queries are generated in tree-sitter-gram from one role table: never edit them here. To move to a new grammar tag, update rev in extension.toml and run scripts/queries.sh. Keep rev aligned with the Helix and Neovim configurations in the Gram monorepo (editors/).
To test a local checkout in Zed, run zed: install dev extension and select this folder.
License
MIT