Extensions: indicate, if an extension is external

Show in :AirlineExtensions if the extension comes bundled with airline
or from an external source.

closes #1890
This commit is contained in:
Christian Brabandt
2019-03-26 08:41:36 +01:00
parent 1fb184305b
commit a6fb6d9da0
3 changed files with 7 additions and 2 deletions

View File

@@ -377,6 +377,8 @@ function! airline#extensions#load()
endif
try
call airline#extensions#{name}#init(s:ext)
" mark as external
call add(s:loaded_ext, name.'*')
catch
endtry
endif