diff --git a/vim/settings/ctrlp.vim b/vim/settings/ctrlp.vim index 9eefcf8..65cb85f 100644 --- a/vim/settings/ctrlp.vim +++ b/vim/settings/ctrlp.vim @@ -3,13 +3,13 @@ if exists("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' + let g:ctrlp_user_command = 'rg --hidden --files -g \!.git --smart-case %s' " rg is fast enough that CtrlP doesn't need to cache let g:ctrlp_use_caching = 0 elseif 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 --hidden --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