Open Spencerduran opened 1 month ago
can't reproduce are you missing something in your repro?
I have the same issue, when this happens when opening a file and scrolling down +50lines. It gets stuck and get ""Recursion detected. Are you manually loading which-key in a keymap? Use opts.triggers instead. Please check the docs."
After downgrading to v3.10.0 I can say it's resolved and the issue seems to be in v3.11.0 - in more detail: https://github.com/folke/which-key.nvim/commit/55fa07fbbd8a4c6d75399b1d1f9005d146cda22c
did you by any chance map j to something?
For me, I have "jk" mapped to escape while in insert mode, but that's the only "j" mapping i have
local default_options = { silent = true }
------------ Insert ------------
-- Press jk fast to enter normal
map("i", "jk", "<ESC>", default_options)
the thing is, this happens with scrolling up as well
@max397574 you are right, I had the following bindings:
-- Remap for dealing with word wrap
-- vim.api.nvim_set_keymap('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
-- vim.api.nvim_set_keymap('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
However this never caused an issue before, does this somehow overload the buffer? Removing the bindings and going back to the latest version solved it for me.
can't reproduce are you missing something in your repro?
I can reproduce it with a nvim-scrollview
plugin installed
{
"dstein64/nvim-scrollview",
config = function()
require('scrollview').setup({
signs_on_startup = { 'all' }
})
end,
},
which for some reason causing nvim to emit ModeChange
event when j
was pressed in visual mode.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
Sonoma 14.5
Describe the bug
When holding j or k to navigate cursor up or down, after about 20 lines this error occurs over and over again:
"Recursion detected. Are you manually loading which-key in a keymap? Use opts.triggers instead. Please check the docs."
require("which-key").setup({}) local wk = require("which-key") wk.add({ })
Steps To Reproduce
Open any file, hold j or k to scroll towards bottom of page.
Expected Behavior
No error should occur
Health
Log
Repro