Skip to content

Type to search extensions

Quarto

v0.0.1

Quarto support for Zed

Updated 10 months ago
33k downloads 20 stars Repository ↗

Quarto for Zed

Quarto support for the Zed editor.

Features

  • Full syntax highlighting for .qmd files
    • Headers, lists, block quotes, thematic breaks
    • Bold, italic, strikethrough, inline code
    • Links and images
    • Tables
    • YAML front matter (with YAML syntax highlighting)
  • Code block injections for:
    • R ({r})
    • Python ({python})
    • Julia ({julia})
    • Observable JS ({ojs})
    • Mermaid diagrams ({mermaid})
    • Graphviz/Dot ({dot})
    • LaTeX/TeX ({latex}, {tex})
    • Standard markdown code blocks (python, r, etc.)
  • Outline view for document navigation (headings)
  • Code snippets for common Quarto patterns

Installation

From Zed Extensions (coming soon)

Search for "Quarto" in Zed's extension marketplace.

Manual Installation (Development)

  1. Clone this repository:
    git clone https://github.com/prefrontal-systems/zed-quarto-plugin.git
  2. Open Zed
  3. Open the Command Palette (Cmd+Shift+P)
  4. Search for "zed: install dev extension"
  5. Select the zed-quarto-plugin directory

Snippets

The extension includes snippets for common Quarto patterns:

  • r - R code chunk
  • py - Python code chunk
  • note - Callout note block
  • yaml - YAML front matter template

Render and Preview

To preview your Quarto document:

  1. Open the integrated terminal in Zed (Ctrl+~ or Cmd+J)
  2. Run:
    quarto preview your-document.qmd
  3. Open the preview URL in your browser

Project Structure

zed-quarto-plugin/
├── extension.toml              # Extension metadata
├── languages/
│   ├── quarto/                 # Main Quarto language
│   │   ├── config.toml         # Language configuration
│   │   ├── highlights.scm      # Syntax highlighting queries
│   │   ├── injections.scm      # Language injection queries
│   │   └── outline.scm         # Outline/symbol queries
│   └── markdown-inline/        # Inline markdown (bold, italic, etc.)
│       ├── config.toml
│       └── highlights.scm
├── grammars/                   # Tree-sitter grammar source
└── snippets/
    └── quarto.json             # Code snippets

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT

Credits

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated