Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: <c-j> <c-k> scrolling is not working when require("which-key").show({ global = true }) is set #845

Open
4 tasks done
edicon opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@edicon
Copy link

edicon commented Sep 10, 2024

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)

NVIM v0.10.0

Operating system/version

MacOS 14.3.1

Describe the bug

After changing the Scroll Up/Down key to <C-j/k>', the "<C-j/k> "scroll does not work.
However, when changed to "<C-d/u>", it operates normally.

Steps To Reproduce

  1. change scroll up/down key to "<C-j/k>"
   wk.setup({
    ...
    keys = {
      scroll_down = "<c-j>", -- binding to scroll down inside the popup
      scroll_up = "<c-k>",   -- binding to scroll up inside the popup
    },
   ...
   })
  1. add keymap for showing global key
   wk.add({
      {
        "<leader>w", -- which-key,
        function()
          return require("which-key").show({ global = true })
        end,
        mode = { "n", "v", "i", "x", "c" },
        desc = "Global Keymaps",
      },
   })
  1. restart nvim
  2. type "<space>w" for showing global keymaps
스크린샷 2024-09-10 오후 3 53 16
  1. type "<C-j/k>" scroll up/down is not working

Expected Behavior

The "<C-j/k>" scroll up/down should work properly.

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
  },
})
@edicon edicon added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant