Avoiding the <cr>
(RETURN
) for a defined mapping when calling a <plug>(...)
function
#385
Closed
3 tasks done
Labels
bug
Something isn't working
Did you check docs and existing issues?
Neovim version (nvim -v)
0.8.2
Operating system/version
MacOS 12.6
Describe the bug
Sorry, I'm not even sure if this is a bug/working as intended
I'm trying to create a custom mapping for vim-visual-multi, and when I do this:
And I do,
<leader>md
, it works as expected.But, if I enable
which-key
, then when I do<leader>md
, it acts weirdly.I asked the in the plugin repo mg979/vim-visual-multi#222, and the
rhs
should NOT have a<cr>
at the end (just like it doesn't with the example I gave)But I think
which-key
somehow adds that<cr>
to this, which causes the mapping to misbehaveSteps To Reproduce
nmap
keybinding<leader>md
on a line and see the visual cursor being created (normal behavior)which-key
(require('which-key').setup()
)<leader>md
on a line a couple of times and it misbehaving because of<cr>
Expected Behavior
I expect the behavior to be the same with which-key enabledd
Repro
The text was updated successfully, but these errors were encountered: