plugins.typst-vim.settings

The configuration options for typst-vim without the typst_ prefix.

For example, the following settings are equivialent to these :setglobal commands:

  • foo_bar = 1 -> :setglobal typst_foo_bar=1
  • hello = "world" -> :setglobal typst_hello="world"
  • some_toggle = true -> :setglobal typst_some_toggle
  • other_toggle = false -> :setglobal notypst_other_toggle

Type: attribute set of anything

Default: { }

Example:

{
  auto_close_toc = 1;
  cmd = "typst";
  conceal_math = 1;
}

Declared by:

plugins.typst-vim.settings.auto_close_toc

Specifies whether TOC will be automatically closed after using it.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 0

Declared by:

plugins.typst-vim.settings.cmd

Specifies the location of the Typst executable.

Type: null or string or raw lua code

Default: null

Plugin default: "typst"

Declared by:

plugins.typst-vim.settings.conceal_math

Enable concealment for math symbols in math mode (i.e. replaces symbols with their actual unicode character). Warning: this can affect performance

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 0

Declared by:

plugins.typst-vim.settings.pdf_viewer

Specifies pdf viewer that typst watch --open will use.

Type: null or string

Default: null

Declared by: