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 v c-u triggers which-key and stops there #798

Closed drusmanbashir closed 6 days ago

drusmanbashir commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.11.0-dev-434+ga0fd51c1e

Operating system/version

Ubuntu 22.04

Describe the bug

So if i go into visual mode, which-key triggers automatically, if then i press ctrl-f to go down, it works fine. If instead I press ctrl-u to go up, nothing happens. I have to press some other key to get out of which-key and then do ctrl-u.

Steps To Reproduce

press v. Press ctrl-u

Expected Behavior

I expect neovim to enter visual mode and move up a block as usual with ctrl-u

Health

No response

Log

No response

Repro

 local which_key = require "which-key"
  which_key.setup {
    opts = {
     triggers = {
       { "<auto>", mode = "nixsotc" },
       { "a", mode = {  "n" } },
     },
    },
    preset = "helix",
    plugins = {
      marks = true,
      registers = true,
      spelling = {
        enabled = true,
        suggestions = 20,
      },
      presets = {
        operators = false,
        motions = false,
        text_objects = false,
        windows = false,
        nav = false,
        z = false,
        g = false,
      },
    },
    win = {
      border = "rounded",
      no_overlap = false,
      padding = { 1, 2 }, -- extra window padding [top/bottom, right/left]
      title = false,
      title_pos = "center",
      zindex = 1000,
    },
    -- ignore_missing = true,
    show_help = false,
    show_keys = false,
    disable = {
      buftypes = {},
      filetypes = { "TelescopePrompt" },
    },
surmish commented 1 month ago

I could recreate this as well.

github-actions[bot] commented 1 week 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.

github-actions[bot] commented 6 days ago

This issue was closed because it has been stalled for 7 days with no activity.