vim-airline / vim-airline-themes

A collection of themes for vim-airline
MIT License
2.05k stars 350 forks source link

airline themes not work on tabline #142

Closed pingsoli closed 6 years ago

pingsoli commented 6 years ago

I have no idea what's is going on ? maybe the settings are misconfigured.

set background=dark
set t_Co=256

let g:airline#extensions#whitespace#enables = 0

" tabline settings
let g:airline#extensions#tabline#show_tabs = 1
let g:airline#extensions#tabline#enable = 1
let g:airline#extensions#tabline#show_buffers = 0
let g:airline#extensions#tabline#tab_nr_type = 1 " tab number
let g:airline#extensions#tabline#tab_min_count = 2
let g:airline_theme='molokai'

let g:airline#extensions#default#layout = [
  \ [ 'a', 'b', 'c' ],
  \ [ 'z', 'error', 'warning' ]
  \ ]

2018-06-11_102331

please give me some advice, thanks a lot.

pingsoli commented 6 years ago

@bling how can I configure the settings and make my vim look like this. Please give me some advice, thank you.

gif

chrisbra commented 6 years ago

what is the output of :echo &tabline?

pingsoli commented 6 years ago

appreciate your reply. @chrisbra

E15: Invalid expression:          
E15: Invalid expression: &tabline?

let g:airline#extensions#tabline#enable = 1 will load the tabline extensions, right ?

I check the vim --startuptime startup.log and find the tabline extensions didn't load.

What's the problem ?

chrisbra commented 6 years ago

leave the question mark away. or use :verbose set tabline?

pingsoli commented 6 years ago

:echo &tabline show nothing.

:verbose set tabline? just show:

tabline=
chrisbra commented 6 years ago

According to the help you need : let g:airline#extensions#tabline#enabled = 1

pingsoli commented 6 years ago

my bad. thanks a lot.