Neovim mode for TeXpresso
Installation:
- Install TeXpresso.
If installation is successful, you should have
texpresso
binary in your PATH. - Clone TeXpresso.vim, and make sure it is in Neovim runtime path.
For instance:
$ cd ~/.config/nvim $ mkdir start $ cd start $ git clone https://github.com/let-def/texpresso.vim.git
Usage:
- Open a
.tex
file. Launch the viewer::TeXpresso <path/to/main.tex>
(e.g.:TeXpresso %
if the current file is the root) - The viewer should let you preview the
.tex
file. It should track your position in the buffer (when the cursor moves), and any change to the buffer should be reflected quickly in the preview window.
TODO:
- report errors/warnings in vim quickfix buffer
- allow customization: theme, cursor synchronizaiton, bindings, stay-on-top, ..
- simplify initialization, respect Neovim conventions, make code more robust
The mode can be customized by changing some lua variables.
You can customize the path to texpresso binary:
:lua require('texpresso').texpresso_path = "/home/.../texpresso/build/texpresso"
Launching TeXpresso in vim:
txp-start.mp4
Live update during edition:
txp-edit.mp4
Using Quickfix window to fix errors and warnings interactively:
txp-quickfix.mp4
Synchronization from Document to Editor (SyncTeX backward):
synctex-backward.mp4
Synchronization from Editor to Document (SyncTeX forward):
synctex-forward.mp4
Theming, Light/Dark modes: 😎