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

Edge case when ve=onemore #75

Open
nkgm opened this issue Nov 1, 2022 · 0 comments
Open

Edge case when ve=onemore #75

nkgm opened this issue Nov 1, 2022 · 0 comments

Comments

@nkgm
Copy link

nkgm commented Nov 1, 2022

Created my custom Leap commands according to my interpretation of inclusive/exclusive as such:

noremap <C-h> <cmd>lua require('leap').leap { backward = true }<CR>
noremap <C-j> <cmd>lua require('leap').leap { backward = true, offset = 2 }<CR>
noremap <C-k> <cmd>lua require('leap').leap {  }<CR>
noremap <C-l> <cmd>lua require('leap').leap { offset = 2 }<CR>

This works beautifully except when you <C-l> to the end of a line when ve=onemore is active. In that case, instead of placing the cursor at the virtual end of the line, it will be placed at the start of the next line, as demonstrated below.

nvim leap onemore

I understand this may represent a very small percentage of your users, but just wondering on ways to address the issue without compromising the excellent Leap ergonomics.

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

1 participant