Merge pull request #776 from jrtc27/master
Added support for Neovim's terminal buffer mode
This commit is contained in:
commit
67de5f2257
@ -142,6 +142,8 @@ function! airline#check_mode(winnr)
|
|||||||
let l:mode = ['replace']
|
let l:mode = ['replace']
|
||||||
elseif l:m =~# '\v(v|V||s|S|)'
|
elseif l:m =~# '\v(v|V||s|S|)'
|
||||||
let l:mode = ['visual']
|
let l:mode = ['visual']
|
||||||
|
elseif l:m ==# "t"
|
||||||
|
let l:mode = ['terminal']
|
||||||
else
|
else
|
||||||
let l:mode = ['normal']
|
let l:mode = ['normal']
|
||||||
endif
|
endif
|
||||||
|
@ -41,6 +41,7 @@ function! airline#init#bootstrap()
|
|||||||
\ 's' : 'SELECT',
|
\ 's' : 'SELECT',
|
||||||
\ 'S' : 'S-LINE',
|
\ 'S' : 'S-LINE',
|
||||||
\ '' : 'S-BLOCK',
|
\ '' : 'S-BLOCK',
|
||||||
|
\ 't' : 'TERMINAL',
|
||||||
\ }, 'keep')
|
\ }, 'keep')
|
||||||
|
|
||||||
call s:check_defined('g:airline_theme_map', {})
|
call s:check_defined('g:airline_theme_map', {})
|
||||||
|
Loading…
Reference in New Issue
Block a user