Closed avih7531 closed 8 months ago
I know the screenshot contradicts what I said, but it's because Hyprland treats screenshots as focusing on a different window. When in tmux and in the nvim pane the tpipline is the normal neovim one with the tmux additions. Still it demonstrates the two status lines:
Update: It is 100% a sttusline problem -- I just tried it with lualine and it was seamless.
Could this please be patched for sttusline in the future? Would love to help but have no idea where to start.
Thanks!
Could this please be patched for sttusline in the future?
Yes, but why are you opening the issue here and not in sttusline?
You can use :verbose set laststatus
to see that sttusline is overwriting the laststatus
option without any reason whatsoever, which causes the statusline to be displayed in vim again (hence you seeing two statuslines).
The reason is this line in sttusline.
This is probably the most idiotic code I have ever read in my life. You can grep sttusline for all usages of laststatus
. They are literally just exposing an internal laststatus option for absolutely no fucking reason and then just set the vim laststatus
option to the value of their own laststatus
option, WTF why in the name of Jesus Christ would you do something unhinged like this, any sane user would just set vim's laststatus
directly instead of using your fucking useless option.
All you are accomplishing is breaking unrelated configs, because you hardcode laststatus to 3 for people that don't set your stupid internal option, even if they set the real laststatus
inside their vimrc.
It is 100% a sttusline problem -- I just tried it with lualine and it was seamless.
Lualine did the same stupid shit and it is clear that the author of sttusline probably copied that practice from there (or used the garbage output of an LLM). Unfortunately I added a workaround just for lualine, which I now regret.
These statuslines should fix their shit upstream instead of letting other plugins add workarounds, because apparently all neovim plugin developers are incapable of using any vim-idiomatic APIs correctly.
For a quick hacky fix, you can use the workaround from this comment in the meantime. But ultimately statusline plugins should stop hardcoding laststatus
for absolutely no fucking reason.
P.S.: Excuse my language, but this is the third time now, that this unnecessary kind of hardcoding breaks stuff, and it always takes time to debug where the problem is coming from, only to then realize in the end that my plugin is working correctly and neovim plugin developers are completely out of their mind.
Describe the bug
I'm getting both my native nvim statusline (sttusline) and then a recreation of it via vim-tpipeline which works perfectly, but the nvim status line stays.
To reproduce
Enter a new tmux session and go into nvim. See below for my config files
.tmux.conf
sttusline setup via Lazy
Expected behavior
That there would only be one status line which integrates neovim + tmux
Terminal emulator
Alacritty
Debug output