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

wrong background when using neovim + termguicolors + tmux #72

Closed
sdemura opened this issue Nov 17, 2017 · 4 comments
Closed

wrong background when using neovim + termguicolors + tmux #72

sdemura opened this issue Nov 17, 2017 · 4 comments

Comments

@sdemura
Copy link

sdemura commented Nov 17, 2017

When using set tgc on Neovim so that I can take advantage of comment brightness, I get the wrong background color when using it inside tmux.

OS X High Sierra
iTerm2 3.1.5 (xterm-256color)
Tmux 2.6 (screen-256color)
neovim 0.2.1 (tgc set)

running in tmux:
screen shot 2017-11-17 at 9 27 05 am

no tmux:
screen shot 2017-11-17 at 9 26 54 am

@arcticicestudio
Copy link
Contributor

arcticicestudio commented Nov 18, 2017

This might be local configuration problem of tmux. Please try to fix it by following the instructions in nordtheme/tmux#15 (comment).

It works on my system when using the correct tmux configurations and I was able to reproduce the exact problem when removing the options described in the linked instructions.

@sdemura
Copy link
Author

sdemura commented Nov 18, 2017

@arcticicestudio,
adding +set-option -ga terminal-overrides ",xterm-256color:Tc" to my tmux.conf did the trick.

Thanks!!!!

@sdemura sdemura closed this as completed Nov 18, 2017
@arcticicestudio
Copy link
Contributor

Glad to hear it worked 😄

I'll add a chapter about the usage with tmux to the documentation.

@i3d
Copy link

i3d commented Sep 20, 2019

the original wasn't working for me
"+set-option -ga terminal-overrides ",xterm-256color:Tc"

But this did
"set -ga terminal-overrides ",xterm-256color:Tc"

  1. paste the set command within the quote verbatimly into your .tmux.conf. (append to the end, so that it is the last set option to execute, override any other ones possible)
  2. tmux source ~/.tmux.conf
  3. try again, it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants