ggandor / leap-spooky.nvim

👻 Actions at a distance
The Unlicense
277 stars 7 forks source link

Buggy behavior when remapping 'v' #14

Open jgregoire opened 1 year ago

jgregoire commented 1 year ago

Expected behavior: yarw copies a remote word

Actual behavior: yarw copies everything between cursor and leap target and autopastes it, despite setting paste_on_remote_yank = false

I eventually figured out that commenting out my remapping of 'p' to 'v' fixes the issue. Using legendary.nvim:

keymaps = {
    { 'v', 'p', mode = {  'n' }, opts = { noremap = true } },
},

causes the weird behavior. Took me a while to isolate this one!

Legendary keybinds are set before calling require('leap-spooky').setup()

Using latest version of leap and leap-spooky, nvim 0.8.3 and 0.9.0 nightly.