Typst extension for zed
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
No open issues yet, or sync has not completed.