Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 915 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 915 Bytes

typst-watch.nvim

typst-watch.nvim is a plugin that makes your typst workflow easier.

Requirements

Features

  • Searches for main.typ, and starts typst 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

Installation

{
    "marnym/typst-watch.nvim",
    opts = {}, -- specify options here
    ft = "typst", -- for lazy loading
}

Configuration

The following options are available in typst-watch.nvim:

{
    -- Command that opens the compiled document.
    preview_cmd = {"xdg-open",}, -- or open on macOS
}