The goal of this plugin is to automate the process of launching and managing a live preview and do so without ever leaving the comfort of vim.
Preview()
start a latex preview with latexmk and opens preview w/ default viewerStopPreview()
kill latexmk process
- write pdftotext to buffer, provide toggle function for keybinding
- Configuration:
- default keymapings to start and stop preview
- path to pdf view of choice
Install latex_preview
with Packer.nvim
. Requires latexmk
use 'nvim-lua/plenary.nvim`
use 'anthonymolinari/latex_preview.nvim'
local lp = require('latex_preview')
lp.setup({
mappings = {},
})
vim.keymap.set('n', '<leader>pf', lp.Preview, {})
vim.keymap.set('n', '<leader>cf', lp.StopPreview, {})
Repos used for refence while working on this plugin: