Fork of zed-extensions/leptos
  • Tree-sitter Query 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zed-zippy[bot] f9ebee518f
Update CI workflows to 3183c04 (#11)
Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-03-25 18:56:14 +00:00
.github/workflows Update CI workflows to 3183c04 (#11) 2026-03-25 18:56:14 +00:00
languages/rstml fix bracket query 2025-05-16 11:02:07 +02:00
.gitignore update .gitignore 2025-05-15 10:51:02 +02:00
extension.toml update id 2025-05-16 10:48:15 +02:00
LICENSE Initial commit 2025-05-15 04:40:21 -04:00
README.md update license in readme 2025-05-15 10:47:00 +02:00

Leptos Extension for Zed

This extension adds support for the Leptos Rust web framework to the Zed editor. Primarily through syntax highlighting of rstml in Rust files.

Features

  • Proper highlighting for Leptos template macros (view!, html!, etc.)
  • Integration with rust-analyzer for comprehensive language support

Installation

  1. Open Zed
  2. Go to Settings > Extensions
  3. Search for "Leptos"
  4. Click "Install"

Usage

The extension activates automatically when editing .rs files that use Leptos macros. The RSX content within view macros will be properly highlighted:

fn app() -> impl IntoView {
    view! {
        <div class="container">
            <h1>"Hello, Leptos!"</h1>
            <p>"This syntax is properly highlighted"</p>
            <Button on:click=move |_| { /* event handler */ }>
                "Click me"
            </Button>
        </div>
    }
}

About Leptos

Leptos is a full-stack, isomorphic Rust web framework that leverages fine-grained reactivity to build declarative user interfaces. Leptos allows you to write web applications entirely in Rust, with components that can run both on the server and in the browser.

Acknowledgments

This extension uses the tree-sitter-rstml grammar for parsing and highlighting RSTML/RSX syntax within Leptos macros.

License

Apache-2.0