Use -g instead of --filename-pattern as Ag argument

This change undoes one of the two changes made in #564 so resolve an
issue for non macOS environments with Ag and ctrlp.
This commit is contained in:
Karun Siritheerathamrong 2017-12-18 22:39:38 -05:00 committed by Geoff Harcourt
parent 06b4bf8c9c
commit cad8f464e3

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 --literal --files-with-matches --nocolor --hidden --filename-pattern "" %s'
let g:ctrlp_user_command = 'ag --literal --files-with-matches --nocolor --hidden -g "" %s'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0