From 038c000f9101e1c0b982242e72cb56f0f9d6545a Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Thu, 20 Nov 2014 21:23:25 +0800 Subject: [PATCH] Show the byfname toggle in status line --- autoload/airline/extensions/ctrlp.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/extensions/ctrlp.vim b/autoload/airline/extensions/ctrlp.vim index 11a8922..8d6c2cb 100644 --- a/autoload/airline/extensions/ctrlp.vim +++ b/autoload/airline/extensions/ctrlp.vim @@ -36,6 +36,9 @@ endfunction " Arguments: focus, byfname, regexp, prv, item, nxt, marked function! airline#extensions#ctrlp#ctrlp_airline(...) let b = airline#builder#new({'active': 1}) + if a:2 == 'file' + call b.add_section_spaced('CtrlPlight', 'by fname') + endif if a:3 call b.add_section_spaced('CtrlPlight', 'regex') endif