Merge pull request #776 from jrtc27/master

Added support for Neovim's terminal buffer mode
This commit is contained in:
Bailey Ling 2015-05-25 21:12:30 -04:00
commit 67de5f2257
2 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,8 @@ function! airline#check_mode(winnr)
let l:mode = ['replace']
elseif l:m =~# '\v(v|V||s|S|)'
let l:mode = ['visual']
elseif l:m ==# "t"
let l:mode = ['terminal']
else
let l:mode = ['normal']
endif

View File

@ -41,6 +41,7 @@ function! airline#init#bootstrap()
\ 's' : 'SELECT',
\ 'S' : 'S-LINE',
\ '' : 'S-BLOCK',
\ 't' : 'TERMINAL',
\ }, 'keep')
call s:check_defined('g:airline_theme_map', {})