https://github.com/zed-extensions/leptos
https://github.com/zed-extensions/leptos
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zed-extensions/leptos
- Owner: zed-extensions
- License: apache-2.0
- Created: 2025-05-15T08:40:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-15T22:22:42.000Z (7 months ago)
- Last Synced: 2025-12-19T06:48:32.972Z (7 months ago)
- Language: Tree-sitter Query
- Size: 15.6 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zed-extensions - Leptos RSTML
README
# Leptos Extension for Zed
This extension adds support for the [Leptos](https://github.com/leptos-rs/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:
```rust
fn app() -> impl IntoView {
view! {
"Hello, Leptos!"
"This syntax is properly highlighted"
"Click me"
}
}
```
## About Leptos
[Leptos](https://github.com/leptos-rs/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](https://github.com/rayliwell/tree-sitter-rstml) grammar for parsing and highlighting RSTML/RSX syntax within Leptos macros.
## License
Apache-2.0