extract bufferline into its own file

This commit is contained in:
Bailey Ling 2013-08-06 00:29:30 +00:00
parent 0758e2a88c
commit 41325bd08c
2 changed files with 13 additions and 7 deletions

View File

@ -117,13 +117,7 @@ function! airline#extensions#load()
endif
if g:airline_enable_bufferline && get(g:, 'loaded_bufferline', 0)
highlight AlBl_active gui=bold cterm=bold term=bold
highlight link AlBl_inactive Al6
let g:bufferline_inactive_highlight = 'AlBl_inactive'
let g:bufferline_active_highlight = 'AlBl_active'
let g:bufferline_active_buffer_left = ''
let g:bufferline_active_buffer_right = ''
let g:bufferline_separator = ' '
call airline#extensions#bufferline#init()
endif
call add(g:airline_statusline_funcrefs, function('airline#extensions#update_external_values'))

View File

@ -0,0 +1,12 @@
" MIT license. Copyright (c) 2013 Bailey Ling.
" vim: ts=2 sts=2 sw=2 fdm=indent
function! airline#extensions#bufferline#init()
highlight AlBl_active gui=bold cterm=bold term=bold
highlight link AlBl_inactive Al6
let g:bufferline_inactive_highlight = 'AlBl_inactive'
let g:bufferline_active_highlight = 'AlBl_active'
let g:bufferline_active_buffer_left = ''
let g:bufferline_active_buffer_right = ''
let g:bufferline_separator = ' '
endfunction