folke / which-key.nvim

💥 Create key bindings that stick. WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.
Apache License 2.0
5.12k stars 163 forks source link

feat(view): add option for dynamic height #650

Closed max397574 closed 1 month ago

max397574 commented 1 month ago

Description

Adds an option which disables the behavior of the window trying to be below the cursorline.

Need to add some docs in the config and perhaps change the name.

Edit: can be configured per mode as well now. Now there also needs to be a discussion about the default value :)

Related Issue(s)

Fixes https://github.com/folke/which-key.nvim/issues/649

Screenshots

Before: image

After: image

folke commented 1 month ago

Added opts.win.no_overlap