Make terminal extension work with Neovim
This commit is contained in:
parent
31f5a9307d
commit
f9ccb57e76
|
@ -128,8 +128,10 @@ function! s:airline_toggle()
|
||||||
autocmd FocusGained * unlet! w:airline_lastmode | :call <sid>airline_refresh()
|
autocmd FocusGained * unlet! w:airline_lastmode | :call <sid>airline_refresh()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists("##TerminalOpen")
|
if exists("##TerminalOpen") || exists('##TermOpen')
|
||||||
autocmd TerminalOpen * :call airline#load_theme() " reload current theme for Terminal, forces the terminal extension to be loaded
|
let event = (has('nvim') ? 'TermOpen' : 'TerminalOpen')
|
||||||
|
" reload current theme for Terminal, forces the terminal extension to be loaded
|
||||||
|
exe 'autocmd' event '* :call airline#load_theme()'
|
||||||
endif
|
endif
|
||||||
autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1
|
autocmd TabEnter * :unlet! w:airline_lastmode | let w:airline_active=1
|
||||||
autocmd BufWritePost */autoload/airline/themes/*.vim
|
autocmd BufWritePost */autoload/airline/themes/*.vim
|
||||||
|
|
Loading…
Reference in New Issue