coc-typst
v0.0.1
Published
A language server for Typst
Downloads
116
Readme
Typst LSP VS Code Extension
Ported from vscode-typst.
Install
" command line
CocInstall coc-typst
" or add the following code to your vimrc
let g:coc_global_extensions = ['coc-typst', 'other coc-plugins']
A VS Code extension for Typst.
Features
- Syntax highlighting, error reporting, code completion, and function signature help
- Compiles to PDF on save (configurable to as-you-type, or can be disabled)
Usage Tips
- This extension compiles to PDF, but it doesn't have a PDF viewer yet. To view
the output as you work, install a PDF viewer extension, such as
vscode-pdf
. - To configure when PDFs are compiled:
- Open settings
- File -> Preferences -> Settings (Linux, Windows)
- Code -> Preferences -> Settings (Mac)
- Search for "Typst Export PDF"
- Change the Export PDF setting
onSave
makes a PDF after saving the Typst fileonType
makes PDF files live, as you typenever
disables PDF compilation
- Open settings
Technical
The extension uses Typst LSP on the backend.