A brand-new language server for Typst. It is still in development and not ready for regular use.
Currently, it has an LSP component and a corresponding VS Code(ium) extension.
- Syntax highlighting
- Compiles Typst into a PDF as you type
- Compile errors appear in the Output pane
- Improved preview
- Completion
- Improved development experience
- Package extension for users
- Create extensions for more editors
Install:
- Clone this repository locally
- Open it in VS Code; it's needed to run the extension
- In the
addons/vscodesubdirectory:- Run
npm installto install extension dependencies - Run
npm run compileto build the extension
- Run
- Run through the development cycle once to initialize and test everything
- Make any changes
- Run
cargo install --path .; at present, the VS Code extension just invokes thetypst-lspcommand to start the LSP, and this command will compile and replace that binary with the latest version- If modifying the extension, keep
npm run watchrunning, ornpm run compileafter changes
- If modifying the extension, keep
- Press
ctrl+F5to launch the "Extension Development Host"; if it's already running, invoke "Developer: Reload Window" from the command palette in the Extension Development Host - Within the Extension Development Host, the extension will be active and ready for testing