Use long options for when calling ag for CtrlP plugin

This commit is contained in:
Andy Waite 2017-11-05 15:32:05 -05:00 committed by Geoff Harcourt
parent c0317cedb0
commit 113ddba054

2
vimrc
View file

@ -80,7 +80,7 @@ if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag -Q -l --nocolor --hidden -g "" %s'
let g:ctrlp_user_command = 'ag --literal --files-with-matches --nocolor --hidden --filename-pattern "" %s'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0