vim-airline / vim-airline-themes

A collection of themes for vim-airline
MIT License
2.04k stars 348 forks source link

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

Closed ariajafari closed 4 years ago

ariajafari commented 4 years ago

environment

if you are using terminal:

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 commented 4 years ago

color configuration (:set t_Co?):

So what about that?

ariajafari commented 4 years ago

color configuration (:set t_Co?):

So what about that?

t_Co=256

chrisbra commented 4 years ago

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

ariajafari commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

ariajafari commented 4 years ago

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