term: allow to disable the term extension

closes #1981
This commit is contained in:
Christian Brabandt 2019-10-16 18:07:10 +02:00
parent 297ca3d004
commit 6d665580a3
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 9 additions and 1 deletions

View File

@ -163,7 +163,8 @@ function! airline#extensions#load()
call add(s:loaded_ext, 'netrw')
endif
if has("terminal") || has('nvim')
if (has("terminal") || has('nvim')) &&
\ get(g:, 'airline#extensions#term#enabled', 1)
call airline#extensions#term#init(s:ext)
call add(s:loaded_ext, 'term')
endif

View File

@ -1098,6 +1098,13 @@ taboo.vim <https://github.com/gcmt/taboo.vim>
* enable/disable taboo.vim integration >
let g:airline#extensions#taboo#enabled = 1
<
------------------------------------- *airline-term*
Vim-Airline comes with a small extension for the styling the builtin
|terminal|. This requires Nvim or a Vim compiled with terminal support.
* enable/disable terminal integration >
let g:airline#extensions#term#enabled = 1
------------------------------------- *airline-tabws*
vim-tabws <https://github.com/s1341/vim-tabws>