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
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