plugin: Reload terminal extension on :term command

This commit is contained in:
Christian Brabandt 2018-11-20 14:51:22 +01:00
parent ada0ba8ae3
commit 904ac4eb0b
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ function! s:airline_toggle()
autocmd FocusGained * unlet! w:airline_lastmode | :call <sid>airline_refresh()
endif
autocmd TerminalOpen * :call airline#load_theme() " reload current theme for Terminal, forces the terminal extension to be loaded
autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1
autocmd BufWritePost */autoload/airline/themes/*.vim
\ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]