From 99329b0c969f34e225e14df49a1b38cf636f9991 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 23 Sep 2013 18:52:37 +0000 Subject: [PATCH] default the tabline separators to powerline if defined. --- autoload/airline/extensions/tabline.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/tabline.vim b/autoload/airline/extensions/tabline.vim index 13b8ed0..765ea7e 100644 --- a/autoload/airline/extensions/tabline.vim +++ b/autoload/airline/extensions/tabline.vim @@ -8,11 +8,16 @@ let s:show_buffers = get(g:, 'airline#extensions#tabline#show_buffers', 1) let s:builder_context = { \ 'active' : 1, - \ 'left_sep' : get(g:, 'airline#extensions#tabline#left_sep' , ' '), - \ 'left_alt_sep' : get(g:, 'airline#extensions#tabline#left_alt_sep' , '|'), \ 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep), \ 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep), \ } +if get(g:, 'airline_powerline_fonts', 0) + let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , '') + let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '') +else + let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , ' ') + let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|') +endif let s:buf_min_count = get(g:, 'airline#extensions#tabline#buffer_min_count', 0) let s:tab_min_count = get(g:, 'airline#extensions#tabline#tab_min_count', 0)