Typst#
Server#
For more information about the LSP server, check tinymist.
Installation#
cargo install tinymist
Debugger: Not available#
Available configurations#
lsp-typst-export-pdf#
Type: (choice (const never) (const onSave) (const onType) (const onDocumentHasTitle))
Default: never
When to export PDF. Possible values: never, onSave, onType, onDocumentHasTitle.
lsp-typst-export-target#
Type: (choice (const paged) (const html))
Default: paged
Export target format.
lsp-typst-extra-args#
Type: string
Default: ``
Extra arguments to pass to the Typst compiler.
lsp-typst-font-paths#
Type: lsp-string-vector
Default: nil
List of file or directory paths to fonts.
lsp-typst-formatter-indent-size#
Type: number
Default: 2
Number of spaces for indentation.
lsp-typst-formatter-mode#
Type: (choice (const disable) (const typstyle) (const typstfmt))
Default: typstyle
Formatter to use for Typst documents.
lsp-typst-formatter-print-width#
Type: number
Default: 120
Soft limit on line width for the formatter.
lsp-typst-lint-enabled#
Type: boolean
Default: nil
Enable or disable lint checks.
lsp-typst-lint-when#
Type: (choice (const onSave) (const onType))
Default: onSave
When to perform lint checks.
lsp-typst-output-path#
Type: string
Default: ``
Path pattern for output files. Supports $root, $dir, $name variable substitution.
lsp-typst-project-resolution#
Type: (choice (const singleFile) (const lockDatabase))
Default: singleFile
How to resolve projects. singleFile: Manage documents like Markdown. lockDatabase: Manage documents like Rust with project tracking.
lsp-typst-root-path#
Type: (choice (const nil) string)
Default: nil
Root path for absolute paths in Typst. Set to "-" to use parent directory of the file.
lsp-typst-semantic-tokens#
Type: boolean
Default: t
Enable semantic tokens for syntax highlighting.
lsp-typst-server-command#
Type: (repeat string)
Default: (tinymist)
Command to run the Tinymist language server.
lsp-typst-system-fonts#
Type: boolean
Default: t
Include system fonts in font search.