To register the LSP and enable certain features such as compile on save, add the
following your settings.json
(or .zed/settings.json
in the project root for
project-specific config),
"lsp": {
"tinymist": {
"settings": {
"exportPdf": "onSave",
"outputPath": "$root/$name"
}
}
}
This will compile a PDF for the main.typ
file in the project root.
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
- Tree Sitter: tree-sitter-typst
- Language Server: tinymist