Giter VIP home page Giter VIP logo

Comments (7)

dpetka2001 avatar dpetka2001 commented on June 9, 2024 1

Yes, I can reproduce. After some fiddling I think vim.opt.smoothscroll is the culprit. This doesn't happen with Neovim stable, only with nightly where this option is enabled. Try setting vim.opt.smoothscroll = false.

from lazyvim.

hoidOS avatar hoidOS commented on June 9, 2024

It turns out the problem was the scrolloff setting set to 999. Lowering it to 10 resolves the problem, although typically, I use it to keep the line centered. Could this option be conflicting with a plugin?

from lazyvim.

dpetka2001 avatar dpetka2001 commented on June 9, 2024

Not able to reproduce with default LazyVim installation. Please test with default LazyVim installation (not your personal configuration) and report if the behavior is present with vim.opt.scrolloff = 999.

from lazyvim.

hoidOS avatar hoidOS commented on June 9, 2024

So i tested it and yes only vim.opt.scrolloff = 999 works, but the combination vim.opt.wrap = true and vim.opt.scrolloff = 999 is the problem.

from lazyvim.

dpetka2001 avatar dpetka2001 commented on June 9, 2024

With these 2 settings, I still can't reproduce in default LazyVim installation. Did you try default LazyVim installation or your personal configuration? Test the following

1. `mkdir ~/.config/lazytest`
2. `git clone https://github.com/LazyVim/starter ~/.config/lazytest`
3. `NVIM_APPNAME=lazytest nvim` and wait for the installation to complete
4. Restart Neovim with the command provided in step 3
5. Set in `~/.config/lazytest/lua/config/options.lua` the 2 settings `vim.opt.scrolloff = 999` and `vim.opt.wrap = true`
6. Restart Neovim with command provided in step 3 and observe behavior

For cleanup

rm -rf ~/.config/lazytest
rm -rf ~/.local/share/lazytest
rm -rf ~/.local/state/lazytest
rm -rf ~/.cache/lazytest

from lazyvim.

hoidOS avatar hoidOS commented on June 9, 2024

Yes i did it like that for testing. Completely clean install only those two options.
As soon as i turn off one of those options it works.
Just tested it on my linux machine also the same problem. (NVIM v0.10.0-dev-2528093)
CleanShot 2024-04-14 at 11 23 50

Below shows the linux machine with wrap off. Then as soon as i turn it on it buges out.

CleanShot 2024-04-14 at 11 34 44

from lazyvim.

hoidOS avatar hoidOS commented on June 9, 2024

Yes it works with smoothscroll off.
Thank you very much for your help!

from lazyvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.