LaTeX preview inside NeoVim using txm.
Supports the following commands:
-
:TxmRender: Takes the whole buffer and renders a LaTeX preview as virtual text. -
:TxmClear: Clears the LaTeX preview inside the buffer. -
:TxmToggle: Toggle the preview on/off. -
<Plug>(TxmPreview): Select text using visual mode and preview it in a scratchpad buffer.
use "rv178/txm.nvim"
vim.keymap.set({'v'}, '<leader>tx', '<Plug>(TxmPreview)')
vim.keymap.set({'n', 'v'}, '<leader>tt', ':TxmToggle')