Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: how to highlight first option? #49

Closed
diocletiann opened this issue Apr 28, 2024 · 2 comments
Closed

question: how to highlight first option? #49

diocletiann opened this issue Apr 28, 2024 · 2 comments

Comments

@diocletiann
Copy link

diocletiann commented Apr 28, 2024

Thanks for the amazing plugin, I finally use f because of it!

One thing I would like to improve, currently the first hit in a line doesn't get highlighted which is a bit confusing, and requires pressing esc to move the cursor there. Would it be possible to highlight it using the same char so I can just press the same char again? I think it would be very intuitive, and wouldn't require changing the logic for the other jump chars.

@diocletiann
Copy link
Author

update: the first hit is now auto selected, maybe LazyVim tweaked something.

@ggandor
Copy link
Owner

ggandor commented May 6, 2024

This is a bug fixed by ggandor/leap.nvim@f1f19fc on nightly. The cursor is moved to the first match automatically (no need for esc), but due to an nvim bug, it was not redrawn on the screen while we're still waiting for input (if you'd have pressed e.g. l afterwards, you could have seen it moving to the column next to the match).

ggandor/leap.nvim#70

@ggandor ggandor closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants