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

Themes won't work when using Tmux in terminal #220

Closed
ariajafari opened this issue Jul 14, 2020 · 8 comments
Closed

Themes won't work when using Tmux in terminal #220

ariajafari opened this issue Jul 14, 2020 · 8 comments

Comments

@ariajafari
Copy link

environment

  • vim: 8.2.1119
    aa

  • vim-airline: 0.11

  • colorscheme: no colorscheme

  • OS: Linux debian 4.19.0-9-amd64 screenshots #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux

  • Have you reproduced with a minimal vimrc: ?yes

  • What is your airline configuration: let g:airline_powerline_fonts = 1
    let g:airline_theme='powerlineish'

if you are using terminal:

  • terminal: GNOME Terminal
  • $TERM variable: xterm-256color
  • color configuration (:set t_Co?):
    if you are using Neovim:
  • does it happen in Vim: ???

actual behavior

Themes won't work when using Tmux in terminal

expected behavior

Themes should work weather Tmux is running or not

screen shot (if possible)

@chrisbra
Copy link
Member

color configuration (:set t_Co?):

So what about that?

@ariajafari
Copy link
Author

color configuration (:set t_Co?):

So what about that?

t_Co=256

@chrisbra
Copy link
Member

does it work with any other theme? What about the graphical version (gvim)? Does (un-)setting termguicolors make any difference?

@ariajafari
Copy link
Author

I have tried most of the themes and all of them had the problem. Setting or unsetting the termguicolors makes no difference. I don't have gvim installed.
When I exit Tmux all of themes work correctly.

@get-me-power
Copy link
Member

get-me-power commented Jul 16, 2020

Remove set termguicolors and add the following configuration to ~/.tmux.conf I think adding it would fix the problem.

tmux.conf

set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'

I don't think this is a vim-airline issue.
If the tmux settings go right, it should work fine.

@ariajafari
Copy link
Author

I made the file .tmux.conf in my home directory and pasted those two lines in the file. But the problem still persists.

@get-me-power
Copy link
Member

It does not reappear.
Please reload the tmux and try.

@ariajafari
Copy link
Author

As you mentioned it was tmux's problem. I reinstalled tmux and the problem solved. Thanks a lot.

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

No branches or pull requests

3 participants