Neovim for Beginners — Plugins for Key Mappings

4 min readJul 2, 2022
Neovim for Beginners — Plugins for Key Mappings

We use the which-key.nvim plugin to create key bindings and display a popup with possible key bindings as we type. In this article, let’s explore other alternative solutions.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Getting Started

The introduction of the Lua keymap APIs (:h lua-keymap) makes it very easy to define key bindings. Several of these plugins use the Lua keymap APIs.

For those new to the Lua keymap APIs, check out this article.



legendary.nvim helps us define keymaps, commands, and autocommands as simple Lua tables, building a legend at the same time. It can integrate with the which-key.nvim plugin, allowing us to use existing which-key.nvim tables with it.

In the lua/plugins.lua file, we install it using packer.nvim.

legendary.nvim uses the Lua keymap (:h lua-keymap) , autocmd (:h api-autocmd), and UI (:h lua-ui) APIs. For a better user interface, we use the dressing.nvim plugin.

Check out this article for the Lua UI APIs.

In the lua/config/legendary.lua file, we set up the plugin.


Software engineer, Data Science and ML practitioner.