A Neovim plugin for live-updating previews of LaTeX, markdown, and other files in your preferred viewer.
KNAP is a Neovim plugin that provides live, auto-updating previews for documents like LaTeX and Markdown. It runs a user-defined processing command (e.g., pdflatex or pandoc) and refreshes an external viewer (e.g., a PDF viewer or browser) in real time as you edit, eliminating the need to manually recompile and reload.
Neovim users who write LaTeX, Markdown, or other markup documents and want a seamless, real-time preview experience without leaving their editor.
Unlike other preview plugins, KNAP is highly configurable, supports a wide range of viewers and formats, and offers SyncTeX integration for precise source-output navigation, all while staying lightweight and adaptable to individual workflows.
Neovim plugin for creating live-updating-as-you-type previews of LaTeX, markdown, and other files in the viewer of your choice.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Users can define custom processing and viewer commands for any file extension, such as setting up textopdf with pdflatex or xelatex, and choosing from various PDF viewers like Sioyek or Zathura, as detailed in the Configuring Routines section.
Supports forward and reverse jumps between LaTeX source and PDF output, with configurable commands for viewers like Sioyek that enable precise navigation, as shown in the Settings for SyncTeX section.
Allows piping buffer content to the processor to avoid constant file saving, reducing the risk of overwriting files, though it disables SyncTeX, as explained in the Using Buffer As Stdin section.
Compatible with many PDF viewers (e.g., Sioyek, llpp, MuPDF) and browsers (e.g., Falkon, QuteBrowser), with detailed configuration hints provided in the README for each.
Setting up routines involves intricate command syntax, especially for SyncTeX with viewers like Sioyek, where nested quotes and escaping can be error-prone, as seen in the default configuration examples.
Defaults assume specific external tools like Sioyek and Falkon, requiring users to install and configure multiple programs, and the plugin is mainly tested on Linux with tentative Windows support.
Constant processing can use significant computing resources, and the README warns about tuning the delay setting to avoid viewer conflicts or crashes, indicating potential instability in fast-paced editing.