Fallback to using git ls-files if ag is missing
This commit is contained in:
parent
6be24941c8
commit
73a0cb2ab8
@ -4,6 +4,10 @@ if executable('ag')
|
|||||||
|
|
||||||
" ag is fast enough that CtrlP doesn't need to cache
|
" ag is fast enough that CtrlP doesn't need to cache
|
||||||
let g:ctrlp_use_caching = 0
|
let g:ctrlp_use_caching = 0
|
||||||
|
else
|
||||||
|
" Fall back to using git ls-files if Ag is not available
|
||||||
|
let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$'
|
||||||
|
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Default to filename searches - so that appctrl will find application
|
" Default to filename searches - so that appctrl will find application
|
||||||
|
Loading…
x
Reference in New Issue
Block a user