You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-airline/vim-airline'
Plug 'gruvbox-community/gruvbox'
Plug 'sheerun/vim-polyglot'
Plug 'dense-analysis/ale'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'ludovicchabant/vim-gutentags'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'airblade/vim-gitgutter'
Plug 'preservim/nerdcommenter'
Plug 'majutsushi/tagbar'
Plug 'ryanoasis/vim-devicons'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'luochen1990/rainbow'
call plug#end()
" For COC node
let g:coc_node_path="/Users/sumik/.nvm/versions/node/v14.2.0/bin/node"
syntax on
" Apply gruvbox colorscheme
autocmd vimenter * colorscheme gruvbox
" For ALE linting
let g:ale_sign_error = '✘'
let g:ale_sign_warning = '⚠'
highlight ALEErrorSign ctermbg=NONE ctermfg=red
highlight ALEWarningSign ctermbg=NONE ctermfg=yellow
let g:ale_set_highlights = 0
" Airline settings
let g:airline#extensions#ale#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
I have searched issues on both airline and gruvbox but can't find any similar.
The text was updated successfully, but these errors were encountered:
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.
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: sainnhe/everforest#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.
The text was updated successfully, but these errors were encountered: