fix ctrlp to only show git tracked files

This commit is contained in:
Nick Nisi
2015-04-24 21:04:00 -05:00
parent 37e57a489e
commit 3d793178e6

View File

@@ -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