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

The jump position key if starts with a vim motion it would trigger the motion after jumping to that postion #203

Closed
Hamza12700 opened this issue Feb 15, 2024 · 4 comments

Comments

@Hamza12700
Copy link

The problem

If the jump position letter starts with a vim motion for example i or a when pressed it would jump to the position but it also triggers the vim motion too.

You can see in this video that the jump position letter is a vim motion v - Visual mode:

proof.mp4
@ggandor
Copy link
Owner

ggandor commented Feb 15, 2024

That v is not a label, but the cursor itself. See https://github.com/ggandor/leap.nvim?tab=readme-ov-file#installation ("Workaround..."), and #70.

@Hamza12700
Copy link
Author

That v is not a label, but the cursor itself. See https://github.com/ggandor/leap.nvim?tab=readme-ov-file#installation ("Workaround..."), and #70.

I tried the snippet code but doesn't work.
It hides the cursor and still triggers the vim motion.

The neovim version:

NVIM v0.10.0-dev-35f453f
Build type: RelWithDebInfo
LuaJIT 2.1.1707061634
Run "nvim -V1 -v" for more info

@ggandor
Copy link
Owner

ggandor commented Feb 16, 2024

Leap jumps to the first target automatically, without having to use a label (:help leap-usage, :help leap-smart-autojump). The v you see is the (fake) cursor on the first letter of the match (vi), not a label. You can see that it has a different color.

@Hamza12700
Copy link
Author

Leap jumps to the first target automatically, without having to use a label (:help leap-usage, :help leap-smart-autojump). The v you see is the (fake) cursor on the first letter of the match (vi), not a label. You can see that it has a different color.

Should've read the friendly manual

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