Wrong hint for "e" motion
smjonas opened this issue · comments
Hi, thanks for this great plugin! I think I found an edge case where the hints differ from Neovim's behavior.
Paste this line into a buffer and move your cursor to the =
after event
:
{ "tris203/precognition.nvim", event = "VeryLazy", config = true },
The movement hints will be shown like this:
However, pressing e
will actually move you to the next "
instead of the y
as indicated by the plugin.
Wow, there are some weird edge cases here.
Did you know e behaves differently if the string in the quotes contains all punctuation? I didn't until just now
I have added a PR that should fix this, I will give it some more testing and then merge it
Thanks for the report @smjonas
Thank you for the quick fix! Yeah, there seem to be quite a few unintuitive edge cases :D