Typst Package Dev Kit
An extension pack for developing Typst Universe packages, designed for use with the typst-community package template.
Included
| Extension |
Role |
| Tinymist |
Typst language server, preview, and typstyle formatting |
| Just |
justfile highlighting and formatting; run recipes from the Command Palette |
| Even Better TOML |
typst.toml and Cargo.toml |
| rust-analyzer |
Rust for WASM plugins |
Requirements
The Just extension needs just, optionally just-lsp. rust-analyzer needs a Rust toolchain.
Linux
curl -sSf https://sh.rustup.rs | sh # rust-analyzer
cargo install --locked just # needs a C linker
cargo install --locked just-lsp # optional
Windows
winget install Casey.Just
winget install Rustlang.Rustup # rust-analyzer
cargo install --locked just-lsp # optional, needs C++ build tools
macOS
brew install just
brew install just-lsp # optional
curl -sSf https://sh.rustup.rs | sh # rust-analyzer
Recommended workspace settings
Tinymist formats with an included copy of typstyle. Add this to your package repo's .vscode/settings.json to format on save:
{
"[typst]": {
"editor.formatOnSave": true
}
}
| |