Neovim Plugins for a Better Coding Experience — Part 4
In this article, let’s continue to explore new Neovim plugins that can improve our coding experience.
This article can be read independently from the previous articles.
- Neovim Tips for a Better Coding Experience — Part 1
- Neovim Tips for a Better Coding Experience — Part 2
- Neovim Plugins for a Better Coding Experience — Part 3
- Neovim Plugins for a Better Coding Experience — Part 5
Command Palette using legendary.nvim
Neovim has a lot of built-in commands, and nobody will be able to remember all the commands. Though the help documentation is comprehensive and helpful, it is a bit tedious to go through if we just want to quickly browse a list of related commands.
This is where the
legendary.nvim plugin comes in handy. I mainly use this plugin to search for those commands that I don’t use frequently.
To demonstrate this, let’s install it using
- We configure the plugin to load when
Ctrl-Pis pressed, similar to how VS Code works.
- This plugin requires Neovim 0.7 and above as it uses the new
- This plugin uses
vim.ui.selectAPI, and we install
dressing.nvimto hook it to
telescope.nvimfor fuzzy finding.
lua/config/legendary.lua file, add the lines to configure it.
:PackerInstall command to install the plugin.
- We configure it to show built-in commands, and to auto-register key mappings…