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.38k stars 177 forks source link

bug: remapping 'z=' leads to old spell suggestions #862

Open george-tk opened 1 month ago

george-tk commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.10

Operating system/version

Max OS

Describe the bug

I have attempted to remap 'z=' to 'Ss' through vim.keymap.set('n', '<leader>'Ss, 'z=', { remap= true })

How ever when using the new key it uses the old full screen spell suggestions . Not the which key version .

I am also not sure where the mapping should be placed (I'm using lazy.nvim plugin folder structure) and if it needs to be in a particular order.

I understand that similar issues have been raised but none have solved my issue.

Any help is much appreciated

Steps To Reproduce

  1. Add which key plugin
  2. Add key map
  3. Attemp to use new key

Expected Behavior

The new key would bring up the spell suggestions in the which-key format

Health

No response

Log

No response

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/which-key.nvim", opts = {} },
    -- add any other plugins here
  },
})
github-actions[bot] commented 1 day ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.