Skip to content

prefrontal-systems/zed-quarto-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Quarto grammar support for the Zed editor - syntax highlighting, code block injections, and snippets for .qmd files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors