I can’t get my ctrl+p to ignore git directory. In theory, something like this should work:
let g:ctrlp_custom_ignore = '\v[\/]\.(DS_Storegit|hg|svn|optimized|compiled|node_modules)$'
But then I read if you’re using a command defined with g:ctrlp_user_command like I am to use ag then you should use set wildignore a la this stackoverflow post here. That didnt seem to work, however.