-
Notifications
You must be signed in to change notification settings - Fork 457
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
Scrolling using vim-smoothie lags when lualine.nvim is enabled #1
Comments
It is less noticeable (though still apparent) using the default scroll speed ( |
Yeah the less delay between updates the more lag there is, without lualine I can get a very smooth motion with it set to |
can you try setting up lualine this way? require('lualine').sections = {
lualine_a = { 'mode' },
-- lualine_b = { 'branch' },
lualine_c = { 'filename' },
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' },
} I think the branch function might be a problem |
try this way local lualine = require('lualine')
lualine.sections = {
lualine_a = { 'mode' },
-- lualine_b = { 'branch' },
lualine_c = { 'filename' },
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' },
}
lualine.status() |
Yeah that works, it doesn't lag anymore! |
Great! Thanks for pointing that out. I know why this is happening but I have a more universal fix in mind than just fixing the Some functions like |
I'm not super familiar with the Lua API but why not make the calls async with vim.loop instead? |
Yes function like |
could you confirm if f62c0d4 solves this issue? |
yeah, seems to be fixed, nice. |
nvim --version
:kitty 0.19.3
(also occurs in xterm)Scrolling using vim-smoothie while lualine.nvim is enabled produces lag, especially towards the end of the scrolling motion. This does not occur while using vim-airline (though lualine.nvim is the first statusline plugin I've ever used, but I had to test with another one).
The text was updated successfully, but these errors were encountered: