-
Notifications
You must be signed in to change notification settings - Fork 3k
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
neovim background is broken if in tmux #6869
Comments
I tested it on Fedora 38 today, this bug is present there as well. |
@ZirixCZ I have this on my .tmux.conf: set -g default-terminal "xterm-24bit" |
@ZirixCZ
I have the same problem! try to change it to:
EDIT
or use 24bit setting I posted before |
Considering your background looks identical with my "broken background" situation, might I ask you to change your background to something custom and testing, if it still looks the same? if you don't have any custom background in neovim, there is no background to be broken. This is what I use, if would you like to test it with it:
I tried to put what you suggested into my tmux config, but it did not help. Might I ask what version of alacritty and tmux are you using |
@ZirixCZ my background is correct and from Tender Theme (https://github.com/jacoborus/tender.vim) I tried your settings and I had your problem ... just try the changes I told you! |
sorry ... only now read that the changed did not help. |
@ZirixCZ Sorry... I made some confusion here ... (because when I tried your settings I used helix and not nvim .. and I have a different theme in helix). Tried again and with mine or your settings I don't have the problem you described in MacOS! (at least with Tender Theme) |
Also, for some reason, when I put the configurations you use into my tmux config file, it glitches out and every letter I type is there multiple times. Nevertheless, it did not fix the background issue for me. I upgraded to alacritty 0.12 now and the issue is still there. I installed it through brew. Edit:
Good, meaning the issue might not be due to tmux after all. |
@ZirixCZ found this .. maybe it will help: https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6 I can send you my alacritty.yml, .tmux.conf and init.vim if you want to check them |
if you could |
@ZirixCZ I remembered that I had to add terminfo entries ... I did it long time ago ... https://gpanders.com/blog/the-definitive-guide-to-using-tmux-256color-on-macos/ EDIT: I did it for 24bit also .. and that's what I use. |
@ZirixCZ I think your problem is around terminfo ... I can send you my conf .. but you will have the same results. Follow the instructions on this link! |
My issue got fixed by adding the following flag into
The override should be the string you get from |
System
OS: macOS
Version: Version 0.11.0 (8dbaa0b)
Neovim's background is broken while in a tmux session.
If I start nvim from a tmux session while running in alacritty, the background is broken.
Neovim running inside of alacritty without tmux:
Neovim running inside of tmux inside of alacritty:
Neovim running inside of tmux inside of kitty (to demonstrate it is not the fault of tmux):
Configurations
nvim
tmux
I tried running with vanilla tmux settings. The result was the same.
alacritty
epilog
I've been trying to find a fix for this for quite a while now, but nothing seemed to have worked. Perhaps this thread helps somebody in the future.
The text was updated successfully, but these errors were encountered: