A List of My Functional Neovim Plugins
My Neovim configuration can be found on GitHub. I used images instead of the code format (in my opinion it looks better), so check out the GitHub to copy and paste the code.
toggleterm.nvim
Toggleterm is a plugin that can create multiple terminals inside Neovim. The main purpose I use it for is similar to the usage of a quake-style terminal, quickly run a command or multiple commands and then go right back to editing my file.
Installation
I currently have this in my plugins.lua:
and this in my config/toggleterm.lua:
It is also possible to open terminals in a few modes other than horizontal: vertical, float, and tab mode.
undotree
Undotree has by far saved me the most time. It allows for history visualization and makes it so easy to undo and redo between different branches.
Installation
The following (in settings.lua) is very important so that undotree saves changes even if you leave Neovim.
Make sure to replace “$HOME” with the actual path to your home directory or completely change the whole file path.
I also have the following keybind set so that it is easy to toggle undotree.
The following is the actual install:
This is a Vim plugin so it does not really have any configuration after this. This also means that there might be performance difference between this and a .nvim plugin, but I don’t know any plugin to compare it too.
nvim-comment
If you are coming from Vim you probably used TPope’s Commentary before. Nvim-comment is the exact same but in Lua (and less features). However it gets the job done and is very useful for commenting very, very quickly.
Installation
Add the following to plugins.lua:
To configure nvim-comment the following should be added to config/comment.lua.
nvim-autopairs
Nvim-autopairs plugin is self explanatory. It adds the finishing pair of brackets, parenthesis, quotes, etc.
Installation
Add the following to your plugins file:
To finish setup add this to config/autopairs.lua:
I did not do any configuration on this plugin but if you want to check out their GitHub.
Other Plugins
I didn’t add all of the functional plugins I use because they all have relatively the same to setup aka. install, read their GitHub READMe/Wiki, and configure.
Some others are:
- nvim-tree.lua (very nice file explorer)
- nvim-colorizer.lua (“A high-performance color highlighter for Neovim which has no external dependencies!”)
- startuptime.vim (unbelievably useful for measuring startup time and performance)
This is the third and final part of this sort of series of articles. The following are links to part 1 and part 2 respectively.
Don’t forget to keep vimming.