From 67a97c1ea035cf24084c624bf31ec141e27659a7 Mon Sep 17 00:00:00 2001 From: "Liu, Joey" Date: Fri, 2 Aug 2019 13:23:42 -0400 Subject: [PATCH] add neoterm support it shows neoterm_id on a inactive neoterm window --- autoload/airline/extensions/term.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/airline/extensions/term.vim b/autoload/airline/extensions/term.vim index 42ee7f9..463c941 100644 --- a/autoload/airline/extensions/term.vim +++ b/autoload/airline/extensions/term.vim @@ -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