Show the byfname toggle in status line

This commit is contained in:
Kevin Chen 2014-11-20 21:23:25 +08:00
parent 411ae84890
commit 038c000f91
1 changed files with 3 additions and 0 deletions

View File

@ -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