-
Notifications
You must be signed in to change notification settings - Fork 44
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]: set laststatus=3
+ lualine.nvim + smart-splits.nvim == flickering when switching windows
#179
Comments
set laststatus=3
+ lualine.nvim + smart-splits.nvim == strobbing when switching windowsset laststatus=3
+ lualine.nvim + smart-splits.nvim == flickering when switching windows
Quick update - I switched to Wezterm and it happens less often but still does happen. The previous recordings are from Windows Terminal (Windows 10) |
Does it only happen with |
I think so, yes. I made another recording with Probably for a split moment when switching between windows, the bottom statusline thinks that it switched away from the current window and is now "viewing" the inactive window. So it shows the inactive window as the only to later realize "actually the inactive window is still the current window, I'll show it as an active statusline instead". And that temporary confusion causes the flicker. I guess it depends on how smart-splits.nvim is implemented but possibly this code be a (Neo)vim bug. However just worth reiterating 2024-04-11.07-30-57.mp4 |
Yeah, the plugin will potentially visit multiple windows to decide if it should wrap and verify it went the right direction. I'm not sure how to resolve this. |
Well the good news is that on a fast enough terminal emulator this comes up less often. For example Windows Terminal flickers on every window change. But Wezterm hardly ever flickers. If it's possible to "look before you leap" then I could see that as a way of solving the issue completely but you'd know much better if that's a good idea with this codebase. If not, "get a faster terminal" IMO is a viable outcome and we can close this issue. Either way I have a personal fix so I'm happy. Up to you! |
Well, the implementation of window movement is quite overcomplicated now, since improved Neovim APIs as well as me just having more knowledge of how it works. I've been meaning to refactor it for quite a while, and that might alleviate this issue somewhat. |
Similar Issues
Neovim Version
Multiplexer Integration
tmux
Multiplexer Version
tmux 3.a
Steps to Reproduce
Expected Behavior
No strobing on lualine. Note: No strobing / flickering happens when switching with simply j / k. Only smart-splits.nvim has this problem, it seems.
Actual Behavior
It flickers as you switch windows.
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
Flickering
2024-04-09.00-56-12.mp4
(uses and from the reproduction)
Working
2024-04-09.00-57-30.mp4
The same environment as before but with
nmap <C-{J,K}> <C-W>{j,k}
to switch between the splits, instead. No flickeringThe text was updated successfully, but these errors were encountered: