Stable versions available at GitHub Releases. If you are using the latest version of typst-ts-mode, then you can use command typst-ts-lsp-download-binarytypst-ts-lsp-download-binary to download the latest stable binary of tinymisttinymist at typst-ts-lsp-download-pathtypst-ts-lsp-download-path.
Build from source by cargo. You can also compile and install latesttinymisttinymist by Cargo.
Above code adds tinymisttinymist downloaded by typst-ts-lsp-download-binarytypst-ts-lsp-download-binary, tinymisttinymist in your PATH and typst-lsptypst-lsp in your PATHPATH to the typst-ts-modetypst-ts-mode entry of eglot-server-programseglot-server-programs.
Extra Settings
Configuring Language Server
You can either use eglot-workspace-configurationeglot-workspace-configuration or specifying launch arguments for tinymisttinymist.
eglot-workspace-configuration
For example, if you want to export PDF on save:
(setq-defaulteglot-workspace-configuration
'(:tinymist(:exportPdf"onSave")))
(setq-defaulteglot-workspace-configuration
'(:tinymist(:exportPdf"onSave")))
(setq-defaulteglot-workspace-configuration
'(:tinymist(:exportPdf"onSave")))
(setq-defaulteglot-workspace-configuration
'(:tinymist(:exportPdf"onSave")))
You can also have configuration per directory. Be sure to look at the documentation of eglot-workspace-configurationeglot-workspace-configuration by describe-symboldescribe-symbol..