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

bug: which-key opens blank spelling selection popup when giving z= a count #782

Closed 0xAdk closed 1 month ago

0xAdk commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.11.0-dev+e7859d2

Operating system/version

NixOs

Describe the bug

when attempting to auto select a spell correction with 1z= which-key opens a blank selection menu

Steps To Reproduce

  1. nvim -u repo.lua
  2. type "asdf"
  3. 1z=

Expected Behavior

it auto selects "acids"

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