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

Overhaul Scrolling algorithm #25

Closed
luposmi opened this issue Jan 22, 2025 · 1 comment
Closed

Overhaul Scrolling algorithm #25

luposmi opened this issue Jan 22, 2025 · 1 comment

Comments

@luposmi
Copy link

luposmi commented Jan 22, 2025

Currently, the scrolling has a lazy approach where the browser only scrolls if the cursor inside nvim is outside that what's shown on the screen. However, i find this quite anoying. For example, if i am at the top of the document and jump down to a section I want to read, only the headline is shown.

I would personally much prefer it if the "lazy" section in the browser is not the actual screen height, but, for example 30% and if the cursor gets outside that section, either centralize or move down as it's currently the case. Centralizing would be less smooth, but more responsive. This would actually be the same way vim handles it internally. The other option would be to just keep the cursor always in the middle.

@jannis-baum
Copy link
Owner

Hello! Did you see jannis-baum/Vivify#146? As far as I can tell, this issue is a duplicate of that. If not, feel free to specify things in more detail and reopen this :)

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