Neovim minimal LaTeX configuration
Requirements
nvim
zathura
(or another PDF viewer)
texlab
latexmk
Installation
- Fork this repo*
- Clone the (forked) repo into
~/.config/nvim
(Linux/Mac) or ~/AppData/Local/nvim/
for (Windows)
- Run nvim
* - recommended if you plan to modify the configuration and pull my updates.
Features
- 📝 Automatically opens PDF viewer
- 🖊️ Syntax highlighting
- 🏎 LaTeX autocompletion with TeXLab (press Ctrl+Space)
- ⚠️ Errors and warnings displayed
- 📜 Folding of sections/blocks
How to use
You need to learn the basic keybindings first (open nvim
and type :Tutor
and hit enter).
To edit LaTeX:
- Open your
.tex
document: nvim doc.tex
or open neovim and type :e doc.tex
- To trigger auto complete, press Ctrl+Space
- To apply a suggestion, press Enter
- To choose a suggestion, press Tab or Shift+Tab
- To collapse or expand current block, press Space+j and Space+k
I also encourage reading VimTeX documentation for advancing in editing.