This repository holds a personal collection of snippets I use to when writing LaTeX documents with Neovim.
Assuming the prerequisites have been met, all that's needed now is a snippets/
folder within your Neovim configuration path and some snippets.
# create snippets folder
mkdir ~/.config/nvim/snippets
And copy the tex.snippets
file to the snippets/
folder that was just made. Now, the snippets are ready to be used in your LaTeX documents.
# copy snippets to snippets/ folder
curl -o ~/.config/nvim/snippets/tex.snippets https://raw.githubusercontent.com/gruelingpine185/latex-snippets/main/tex.snippets
Snippet | Description |
---|---|
dc | Create documentclass |
dca | Create documentclass with article type |
Snippet | Description |
---|---|
Use | Use package with options |
use | Use package |
Snippet | Description |
---|---|
bd | Create begin/end document |
beg | Create custom begin/end environment |
desc | Create description environment |
ol | Create ordered list (enumerate) environment |
ul | Create unordered list (itemize) environment |
Snippet | Description |
---|---|
li | List item |
lli | Labeled list item |
As mentioned, this repo holds personal snippets, however, if I find use with suggested snippets, I'll be sure to add them. With that aside, if bugs or typos are encountered, feel free to make an issue or fix it with a Pull Request.