tabline: do not show terminal buffers by default
This commit is contained in:
parent
fce8585239
commit
a60eabb82f
@ -100,7 +100,7 @@ endfunction
|
||||
function! airline#util#ignore_buf(name)
|
||||
let pat = '\c\v'. get(g:, 'airline#ignore_bufadd_pat', '').
|
||||
\ get(g:, 'airline#extensions#tabline#ignore_bufadd_pat',
|
||||
\ 'gundo|undotree|vimfiler|tagbar|nerd_tree|startify')
|
||||
\ 'gundo|undotree|vimfiler|tagbar|nerd_tree|startify|!')
|
||||
return match(a:name, pat) > -1
|
||||
endfunction
|
||||
|
||||
|
@ -331,7 +331,9 @@ section.
|
||||
Determines a pattern to ignore a buffer name for various things (e.g. the
|
||||
tabline extension) or the read-only check. Default is
|
||||
`g:airline#extensions#tabline#ignore_bufadd_pat` (see below) or
|
||||
`'gundo|undotree|vimfiler|tagbar|nerd_tree|startify'` if it is unset.
|
||||
`'gundo|undotree|vimfiler|tagbar|nerd_tree|startify|!'` if it is unset.
|
||||
|
||||
The "!" prevents terminal buffers to appear in the tabline.
|
||||
|
||||
*airline#extensions#tabline#exclude_buffers*
|
||||
Buffer numbers to be excluded from showing in the tabline (similar to
|
||||
|
Loading…
Reference in New Issue
Block a user