Typst
Typst support.
LanguagesLanguage servers
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Typst. The extension's id is typst.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Typst Extension for Zed
Usage
To register the LSP and enable certain features (such as compile on save), add the following to your local (resp. server) configuration file (~/.zed/settings.json):
// In settings.json
{
"lsp": {
"tinymist": {
"initialization_options": {
// Enable background preview
// Server will be running on 127.0.0.1:23635
"preview": {
"background": {
"enabled": true,
},
},
},
"settings": {
// Compile on save
// This will compile a PDF for the `main.typ` file in the project root.
"exportPdf": "onSave",
"outputPath": "$root/$name",
// Enable formatter
"formatterMode": "typstyle",
}
}
},
"languages": {
"Typst": {
// Disable soft wrap
"soft_wrap": "none",
},
},
}
To see all available options refer to the tinymist documentation. Beware that the configuration options displayed there apply to NeoVim, not Zed, so some might be incorrect or misleading
Components
- Tree Sitter: tree-sitter-typst
- Language Server: tinymist