gruvbox
gruvbox copied to clipboard
Add airline_term section in order to correctly color Terminal buffer's statusline
As stated by Vim Airline's creator, each theme should set airline_term
in order to color Terminal buffer's statusline. Here's an example from peaksee theme.
Currently, the Terminal buffer's statusline is colored like this:
I have tried the following, but I cannot get it to work:
let s:SL = airline#themes#get_highlight('StatusLine')
let g:airline#themes#gruvbox#palette.normal.airline_term = s:SL
let g:airline#themes#gruvbox#palette.insert.airline_term = s:SL
let g:airline#themes#gruvbox#palette.visual.airline_term = s:SL
let g:airline#themes#gruvbox#palette.replace.airline_term = s:SL
let g:airline#themes#gruvbox#palette.commandline.airline_term = s:SL
let g:airline#themes#gruvbox#palette.inactive.airline_term = s:SL
and (copied from the peaksee example):
" Terminal
let s:TE = [ '#1C1C1C' , '#3A3A3A' , 254 , 237 , '' ]
let g:airline#themes#gruvbox#palette.normal.airline_term = [
\ s:TE[0], s:TE[1], s:TE[2], s:TE[3]
\ ]
let g:airline#themes#gruvbox#palette.insert.airline_term = g:airline#themes#gruvbox#palette.normal.airline_term
let g:airline#themes#gruvbox#palette.visual.airline_term = g:airline#themes#gruvbox#palette.normal.airline_term
let g:airline#themes#gruvbox#palette.replace.airline_term = g:airline#themes#gruvbox#palette.normal.airline_term
I am also having problems with my airline status line changing themes when going to different buffers. I have tried the above suggestion but haven't got it to work. Any help would be appreciated!
I have same problem when using solarized airline theme.
Solved with this way https://github.com/vim-airline/vim-airline-themes/issues/180#issue-471090136
Just add that block of patch to my .vimrc
For Gruvbox users, I recommend giving the fork gruvbox-community/gruvbox a try.
I think this issue is already solved there, still, this repo doesn't seem to be maintained anymore, whilst that fork is pretty active and they always respond quickly.