Merge pull request #651 from chenaren/byfname

Show the byfname toggle in status line of CtrlP
This commit is contained in:
Bailey Ling 2014-12-09 22:25:41 -05:00
commit 401ce611c6

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