fix ctrlp to only show git tracked files
This commit is contained in:
@@ -421,10 +421,12 @@ let g:syntastic_typescript_checkers = ['tslint']
|
||||
let g:syntastic_javascript_checkers = ['jshint', 'jscs']
|
||||
|
||||
" CtrlP ignore patterns
|
||||
let g:ctrlp_custom_ignore = {
|
||||
\ 'dir': '\.git$\|node_modules$\|bower_components$\|\.hg$\|\.svn$',
|
||||
\ 'file': '\.exe$\|\.so$'
|
||||
\ }
|
||||
" let g:ctrlp_custom_ignore = {
|
||||
" \ 'dir': '\.git$\|node_modules$\|bower_components$\|\.hg$\|\.svn$',
|
||||
" \ 'file': '\.exe$\|\.so$'
|
||||
" \ }
|
||||
" only show files that are not ignored by git
|
||||
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
|
||||
|
||||
" search the nearest ancestor that contains .git, .hg, .svn
|
||||
let g:ctrlp_working_path_mode = 2
|
||||
|
||||
Reference in New Issue
Block a user