Open ravisumit33 opened 4 years ago
Same problem here. The tabline doesn't highlight the active buffer (I don't use tabs).
Here's the config that reproduces the issue on macOS using NVIM v0.4.3 on the default macOS Terminal:
call plug#begin('~/.config/nvim/plugged')
Plug 'morhetz/gruvbox', { 'tag': 'v3.0.1-rc.0' } " I use v3.0.1-rc.0 because it fixed colors for coc.nvim overlays, which I use with clangd.
Plug 'vim-airline/vim-airline'
let g:airline_powerline_fonts = 1
let g:airline_theme='gruvbox'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline#extensions#tabline#show_tabs = 0
let g:airline#extensions#tabline#show_buffers = 1
call plug#end()
autocmd VimEnter * colorscheme gruvbox " Only change colorscheme after all plugins and configs are loaded.
Same result if I use Plug 'gruvbox-community/gruvbox'
.
Here's how it looks:
And here's how it should look like:
The active buffer on the tabline should have a different color, as shown in the 2nd screenshot.
If I manually execute :colorscheme gruvbox
and switch between buffers, the colors get fixed! I thought the autocmd VimEnter * colorscheme gruvbox
was enough, but it looks like it is not.
Any hints on what could be the issue?
Unfortunately the airline config is likely out of date. PRs appreciated.
A solution to this was found recently for everforest. I don’t really understand how themes work and didn’t succeed in adapting it to gruvbox, but perhaps someone more knowledgeable will see what to do: https://github.com/sainnhe/everforest/issues/105.
I have started using airline with gruvbox and noticed that tabline is not properly highlighted. Statusline is fine. Current tab is also not highlighted as seen below.
I am using Vim8.2 on iTerm Mac. Below is my minimal vimrc.
I have searched issues on both airline and gruvbox but can't find any similar.