Search code examples
neovimneovim-pluginlazyvim

How to change the which-key plugin popup position


When I open LazyVim and press the leader key (space) the which-key plugin popup appears and shows options of what action key I could press next.

Explorer NeoTree space >> e

The position of the popup is to the right of terminal, examples of which-key on github show the position of the popup at the bottom of the terminal spanning the entire width thus allowing for more next key options to be shown.

How can I make it appear at the bottom of the terminal and take up the entire width?


Solution

  • LazyVim changes default configuration for which-key plugin: the preset option is now helix (inspired by the Helix editor) instead of the default value classic (which-key documentation):

    With this which-key configuration, plugin pop-up with your keymaps appears at the right of your window (helix preset). If you want to have the pop-up window at the bottom, change the which-key preset to classic.