- Tree-sitter Query 74.4%
- Rust 25.6%
| grammars | ||
| languages/qtml | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| extension.toml | ||
| extension.wasm | ||
| LICENSE | ||
| README.md | ||
QTML for Zed
QTML language support for Zed. It provides Tree-sitter syntax highlighting, bracket matching, indentation, syntax diagnostics, style-document diagnostics, document formatting, and LSP completions.
Completions include built-in and imported components, properties, state blocks,
and tokens from directly imported modules (for example, theme.surface after
import "styles/theme.qtml" as theme). The extension does not currently
provide hover information, navigation, or diagnostics across imported files.
Development setup
Install the QTML language server from a local QTML checkout:
cd <path-to-qtml>
cargo install --path qtml_lsp
Then install this repository as a development extension in Zed. The extension
launches qtml_lsp with no arguments and resolves it from your PATH.
If Zed cannot find the server, run the installation command above from the QTML checkout and restart the language server.
Notes
Tree-sitter remains responsible for syntax highlighting. The language server provides completions, diagnostics, and formatting.