Revert "Migrate from the silver searcher to ripgrep"

This commit is contained in:
Yan Pritzker
2017-05-30 16:40:31 -05:00
committed by GitHub
parent a8f11c97c6
commit e5a1358508
8 changed files with 17 additions and 27 deletions

View File

@@ -1,16 +1,10 @@
if exists("g:ctrlp_user_command")
unlet g:ctrlp_user_command
endif
if executable('rg')
" Use rg in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'rg --files --smart-case %s'
" rg is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
elseif executable('ag')
if executable('ag')
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"'
let g:ctrlp_user_command =
\ 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0