neoscroll.nvim icon indicating copy to clipboard operation
neoscroll.nvim copied to clipboard

scrolling jumps up and down

Open xsteadfastx opened this issue 2 years ago • 8 comments

since the last commit my scrolling via ctrl+d and ctrl+u jumps around. i recorded my screen to show it. thanks for this great plugin!

https://user-images.githubusercontent.com/168397/173810187-36823c8a-0701-438d-bdf5-843c5736d6fb.mp4

xsteadfastx avatar Jun 15 '22 10:06 xsteadfastx

I can also confirm that I've been experiencing the same behavior during the last 2 days. It overshoots and keeps going until the end/beginning of the page. It also jumps back up while holding C-d or vice versa for C-u.

I've uninstalled the plugin and removed it's local files, reinstalled it, but without success.

I don't know if it's useful to provide our config, but if it would be needed I can provide it.

mattiasbonte avatar Jun 15 '22 14:06 mattiasbonte

I'm sorry to hear that. I clearly didn't test the changes well enough. I've reverted the last commit so if you pull the changes you should be good to go. Can any of you provide the Neoscroll config that reproduces this behaviour?

karb94 avatar Jun 15 '22 22:06 karb94

I had the same exact issue till @karb94 reverted the last commit.

Also i'm not using any custom config, i used the defaults and having it like this on my config:

	use({
		"karb94/neoscroll.nvim", -- pretty smooth scrolling
		config = function()
			require("neoscroll").setup({})
		end,
	})

omarahm3 avatar Jun 16 '22 00:06 omarahm3

for me too. i just used the basic setup.

xsteadfastx avatar Jun 16 '22 06:06 xsteadfastx

should i close this issue? or let it open?

xsteadfastx avatar Jun 16 '22 06:06 xsteadfastx

My config:

------------
-- CONFIG -- "https://github.com/karb94/neoscroll.nvim#options"
------------
require("neoscroll").setup({
	hide_cursor = true, -- Hide cursor while scrolling
	stop_eof = true, -- Stop at <EOF> when scrolling downwards
	use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
	respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
})

Very basic, the revert has fixed the behavior for me thank you for that, and also thanks for the awesome plugin!

mattiasbonte avatar Jun 16 '22 11:06 mattiasbonte

@xsteadfastx leave the issue opened as a reminder for me. I'll close it when I fix the issue.

karb94 avatar Jun 17 '22 08:06 karb94

ok :) thanks

xsteadfastx avatar Jun 17 '22 09:06 xsteadfastx