let ctrlp search for hidden files while exclude .git
This commit is contained in:
parent
a86ab1fdb1
commit
47c7e8a9eb
@ -3,13 +3,13 @@ if exists("g:ctrlp_user_command")
|
|||||||
endif
|
endif
|
||||||
if executable('rg')
|
if executable('rg')
|
||||||
" Use rg in CtrlP for listing files. Lightning fast and respects .gitignore
|
" 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
|
" rg is fast enough that CtrlP doesn't need to cache
|
||||||
let g:ctrlp_use_caching = 0
|
let g:ctrlp_use_caching = 0
|
||||||
elseif executable('ag')
|
elseif executable('ag')
|
||||||
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
" 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
|
" ag is fast enough that CtrlP doesn't need to cache
|
||||||
let g:ctrlp_use_caching = 0
|
let g:ctrlp_use_caching = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user