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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

george-tk opened this issue · comments

Did you check docs and existing issues?

  • I have read all the which-key.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of which-key.nvim
  • I have searched the existing issues of plugins related to this issue

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
  },
})