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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
abiwab 971352dfdb
All checks were successful
CI / Extension, queries & options (push) Successful in 1m38s
docs: align README with Gram v1.6 positioning
2026-11-30 14:42:41 +01:00
.forgejo/workflows ci: check out the code in shell, the Rust image has no Node 2026-11-25 15:27:53 +01:00
languages/gram feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
scripts feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
src feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
.gitignore feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
Cargo.lock feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
Cargo.toml feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
extension.toml chore: bump tree-sitter-gram to v0.1.1 2026-11-29 10:42:51 +01:00
LICENSE feat: add the Gram extension for Zed with tree-sitter-gram and the language server 2026-11-25 15:09:10 +01:00
README.md docs: align README with Gram v1.6 positioning 2026-11-30 14:42:41 +01:00

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 in extension.toml.
  • Language intelligence comes from @gram-lang/language-server (requires version 1.6.0 or later). If gram-language-server is already in your PATH, 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