edkolev / tmuxline.vim

Simple tmux statusline generator with support for powerline symbols and statusline / airline / lightline integration
MIT License
1.6k stars 90 forks source link

Gruvbox color scheme #66

Open jurajpetrik opened 7 years ago

jurajpetrik commented 7 years ago

Issue

Tmuxline doesn't work with the airline theme gruvbox. By default neovim doesn't set tmux theme on opening.

https://github.com/morhetz/gruvbox

screen shot 2016-10-15 at 20 57 01

There are no problems with other themes.

screen shot 2016-10-15 at 20 58 17

When I switch to gruvbox though

screen shot 2016-10-15 at 21 00 18

How to reproduce

Put the following in your init.vim

call plug#begin('~/.vim/plugged')
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' 
Plug 'edkolev/tmuxline.vim' " configure tmux status bar to be like vim airline. Is this magic?
call plug#end()

run nvim +PlugInstall, then open nvim, run :AirlineTheme gruvbox

Other

$ tmux  -V 
2.3
$ nvim --version
NVIM 0.1.5
wseabra commented 7 years ago

I'm with the same problem using onedark theme

ret2src commented 2 years ago

I was able to fix this by adding the following lines to my ~/.tmux.conf:

set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",tmux-256color:Tc,xterm-256color:Tc"

ksnip_20210903-215710

Source: https://github.com/gruvbox-community/gruvbox/wiki/Terminal-specific