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

fix(mappings): make replace_keycodes default to false in v1 spec #640

Closed zeertzjq closed 1 month ago

zeertzjq commented 1 month ago

Description

Old versions of which-key.nvim use vim.api.nvim_set_keymap(), which has replace_keycodes always default to false.

The new version of which-key.nvim uses vim.keymap.set(), which has replace_keycodes default to true if expr is true.

To not break old specs, make replace_keycodes default to false there.

folke commented 1 month ago

Makes sense. Thanks!