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

bug: laggy with multiple window panes #93

Open
steveshi7 opened this issue Feb 23, 2024 · 3 comments
Open

bug: laggy with multiple window panes #93

steveshi7 opened this issue Feb 23, 2024 · 3 comments

Comments

@steveshi7
Copy link

steveshi7 commented Feb 23, 2024

This works great with only one window pane but I notice noticeable lag when there is more than one.

Example (gif compression made this ~30% more sluggish than it actually is):
ezgif-4-03007650fc

config:

	{
		"karb94/neoscroll.nvim",
		enabled = true,
		config = function()
			local t    = {}
			-- Syntax: t[keys] = {function, {function arguments}}
			t['<C-u>'] = { 'scroll', { '-vim.wo.scroll', 'true', '80', [['sine']] } }
			t['<C-d>'] = { 'scroll', { 'vim.wo.scroll', 'true', '80', [['sine']] } }
			require('neoscroll.config').set_mappings(t)
		end
	},
@karb94
Copy link
Owner

karb94 commented Mar 10, 2024

can you try this from #80:

require('neoscroll').setup({
    pre_hook = function()
        vim.opt.eventignore:append({
            'WinScrolled',
            'CursorMoved',
         })
    end,
        post_hook = function()
        vim.opt.eventignore:remove({
            'WinScrolled',
            'CursorMoved',
        })
    end,
})

@steveshi7
Copy link
Author

steveshi7 commented Mar 16, 2024

can you try this from #80:

require('neoscroll').setup({
    pre_hook = function()
        vim.opt.eventignore:append({
            'WinScrolled',
            'CursorMoved',
         })
    end,
        post_hook = function()
        vim.opt.eventignore:remove({
            'WinScrolled',
            'CursorMoved',
        })
    end,
})

Unfortunately, this issue persists even after using the above fix.

@karb94
Copy link
Owner

karb94 commented Sep 1, 2024

Is this still an issue? Does this happen only with specific LSPs or file types? I'd be good if you can check if it's reproducible without other plugins active.

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