typst-watch.nvim is a plugin that makes your typst workflow easier.
-
Neovim >=
0.10.0
-
Searches for
main.typ
, and startstypst watch main.typ
-
If a different main file is used, the compilation process can be launched with:
:TypstWatch filename
or:TypstWatch
for the current file -
The compiled document can be opened with
:TypstPreview
-
Notifies the user of the compilation result
{
"marnym/typst-watch.nvim",
opts = {}, -- specify options here
ft = "typst", -- for lazy loading
}
The following options are available in typst-watch.nvim:
{
-- Command that opens the compiled document.
preview_cmd = {"xdg-open",}, -- or open on macOS
}