Add dedicated tabline builder
This commit is contained in:
parent
57f2619c67
commit
5907d3909e
@ -181,7 +181,7 @@ function! airline#extensions#tabline#new_builder()
|
||||
let builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|')
|
||||
endif
|
||||
|
||||
return airline#builder#new(builder_context)
|
||||
return airline#extensions#tabline#builder#new(builder_context)
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#tabline#group_of_bufnr(tab_bufs, bufnr)
|
||||
|
12
autoload/airline/extensions/tabline/builder.vim
Normal file
12
autoload/airline/extensions/tabline/builder.vim
Normal file
@ -0,0 +1,12 @@
|
||||
" MIT License. Copyright (c) 2013-2018 Bailey Ling et al.
|
||||
" vim: et ts=2 sts=2 sw=2
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
let s:prototype = {}
|
||||
|
||||
function! airline#extensions#tabline#builder#new(context)
|
||||
let builder = airline#builder#new(a:context)
|
||||
call extend(builder, s:prototype, 'force')
|
||||
return builder
|
||||
endfunction
|
Loading…
Reference in New Issue
Block a user