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.25k stars 165 forks source link

can't remap 'z=' to open a which-key menu #593

Closed tiyn closed 6 months ago

tiyn commented 6 months ago

I'm currently trying to map the which-key menu that opens when you press z= to another key combination. If I try to remap it by mapping another keycombination to trigger z= then it'll open the default z= window and not the which-key menu. Is there a way to remap only the which-key z= menu?

tiyn commented 6 months ago

Nevermind, I just found the correct way to do it. For anyone using mapx - it looks like the following:

local m = require("mapx").setup({ global = true, whichkey = true })
m.nmap("<F6>s", "z=", "Spell: display suggestions")