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

Pressing gv brings up which key, even though the key sequence is complete #678

Closed mangelozzi closed 1 month ago

mangelozzi commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.11.0-dev-322+ge7020306a Build type: RelWithDebInfo LuaJIT 2.1.1716656478

Operating system/version

Ubuntu 22.04

Describe the bug

Pressing gv brings up the which key panel, when it should just select the visual selection.

Steps To Reproduce

Press gv

Expected Behavior

Should not show which key since the key sequence is complete.

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
  },
})
folke commented 1 month ago

Closing in favor of #690