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 = true;
  cmd = "typst";
  conceal_math = true;
}

Declared by:

plugins.typst-vim.settings.auto_close_toc

Specifies whether TOC will be automatically closed after using it.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.typst-vim.settings.cmd

Specifies the location of the Typst executable.

Plugin default: "typst"

Type: null or string or raw lua code

Default: null

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

Plugin default: false

Type: null or boolean or raw lua code

Default: null

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: