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

Turn off scrolloff while lightspeeding? #27

Closed
xigoi opened this issue Jul 13, 2021 · 3 comments
Closed

Turn off scrolloff while lightspeeding? #27

xigoi opened this issue Jul 13, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@xigoi
Copy link

xigoi commented Jul 13, 2021

After pressing the second character, lightspeed immediately jumps to the first match. Unfortunately, if one has 'scrolloff' activated, this may cause the screen to scroll, making it hard to keep focus on the remaining labels. Would it be possible to temporarily disable the setting?

@ggandor ggandor added the enhancement New feature or request label Jul 13, 2021
@ggandor
Copy link
Owner

ggandor commented Jul 13, 2021

Absolutely, good idea, I use scrolloff too, but haven't thought about this yet. I will fix this soon.

@ggandor ggandor self-assigned this Jul 13, 2021
@ggandor
Copy link
Owner

ggandor commented Aug 2, 2021

Sidenote: a pending Neovim issue complicates this - we could hack around it, or just wait for it to be resolved. :)

Edit: we can just use nvim_eval('&scrolloff') in the meantime, no problem.

@ggandor
Copy link
Owner

ggandor commented Aug 2, 2021

Food for thought: I've implemented this, but when we want to jump to the first match, it is just as annoying that on the next command, the window suddenly scrolls...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants