Merge pull request #1951 from liujoey/master

add neoterm support
This commit is contained in:
Christian Brabandt 2019-08-11 14:38:52 +02:00 committed by GitHub
commit a40184536b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ function! airline#extensions#term#inactive_apply(...)
let spc = g:airline_symbols.space
call a:1.add_section('airline_a', spc.'TERMINAL'.spc)
call a:1.add_section('airline_b', spc.'%f')
let neoterm_id = getbufvar(a:2.bufnr, 'neoterm_id')
if neoterm_id != ''
call a:1.add_section('airline_c', spc.'neoterm_'.neoterm_id.spc)
endif
return 1
endif
endfunction