leap-spooky.nvim
leap-spooky.nvim copied to clipboard
"yriw" requires quicker input than "yiw"
Hi, thanks for the plugin!
First an observation about regular old yiw:
- If I input
y, vim sits in operator-pending mode indefinitely. - From here I can press
iand I'm still in operator-pending mode indefinitely. - I can press
wwhenever to complete my yank.
However, the yirw key sequence behaves differently. It seems that some sort of timer (perhaps updatetime?) starts after i, and we only get to sneaking if the complete text object is input before the timer expires. Otherwise, we get returned to normal mode.
On my machine, I seem to only have a quarter of a second, which makes actually using leap-spooky rather more difficult that it ought to be, as I have to decide ahead of time the exact "yarw", "diMp", or whatever I'm trying to accomplish, and then input it without pauses.
Is there anything we can do about this, or is it perhaps a fundamental limitation?
Thanks!
Hi! This depends on timeoutlen (the default is 1000, you might have set it to some smaller value).
Is there anything we can do about this, or is it perhaps a fundamental limitation?
I have no idea, to be honest.
I see, thanks! Yeah -- my timeoutlen is 300 because I want reasonably quick help from which-key if I'm struggling to remember a mapping. But here, I kind of want infinite delay :).
It's probably not possible: https://github.com/folke/which-key.nvim/issues/272