zed-carve

August 22, 2026 ยท View on GitHub

Zed editor support for Carve, a post-Markdown lightweight markup language with visual mnemonics.

This extension provides syntax highlighting, language server integration, bracket behavior, injections, and outline support for .crv files.

Status

This extension uses the native markup-carve/tree-sitter-carve grammar.

Features

  • Syntax highlighting for Carve-style markup files.
  • Language server integration (diagnostics, completions, hover, go-to-definition, references, rename, code actions, folding, formatting) via carve-lsp, installed automatically from npm through Zed's managed Node runtime.
  • Code-block language injections for fenced code blocks.
  • YAML highlighting inside frontmatter blocks.
  • LaTeX highlighting inside math spans/blocks.
  • Bracket matching and autoclose pairs for [], (), {}, /, _, *, and backticks.
  • Outline view based on document headings and div/admonition blocks.
  • Snippets for common constructs: adm (admonition), div, code (fenced block), table, fm (frontmatter), fn (footnote), task (task item, any spec state).
  • Editor scopes that keep emphasis/verbatim autoclose out of code spans and comments.
  • Carve file association for .crv.

Installation

Install Carve from the Zed extension registry or from Zed's Extensions view.

See the development guide for local installation and validation of grammar or query changes.

Credits

  • Jonas Hietala for the upstream Djot grammar architecture that informed the first native Carve grammar.
  • PHP Collective for the Zed Djot extension this extension was initially scaffolded from.
  • markup-carve for the Carve specification and conformance corpus.