Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whiteblackgoose/nvim-latex-preconfig
Neovim Preconfiguration for LaTeX
https://github.com/whiteblackgoose/nvim-latex-preconfig
Last synced: 10 days ago
JSON representation
Neovim Preconfiguration for LaTeX
- Host: GitHub
- URL: https://github.com/whiteblackgoose/nvim-latex-preconfig
- Owner: WhiteBlackGoose
- Created: 2023-03-02T05:12:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-03-02T10:35:56.000Z (over 1 year ago)
- Last Synced: 2024-11-01T13:41:59.385Z (17 days ago)
- Language: Lua
- Size: 4.88 KB
- Stars: 29
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neovim minimal LaTeX configuration
## Requirements
- `nvim`
- `zathura` (or another PDF viewer)
- `texlab`
- `latexmk`## Installation
1. Fork this repo*
2. Clone the (forked) repo into `~/.config/nvim` (Linux/Mac) or `~/AppData/Local/nvim/` for (Windows)
3. 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+kI also encourage reading [VimTeX](https://www.ejmastnak.com/tutorials/vim-latex/vimtex/#doing-stuff) documentation for advancing in editing.