let fzf look for git files instead of all files, if git repo

main
Ayush Mukherjee 3 years ago
parent fff09f0973
commit 4a46ea9735

@ -68,4 +68,9 @@ nmap <C-B> :ls<CR>
" shortcuts
nnoremap <C-G> :Goyo<CR>
" check if git dir, then use :GFiles for fzf
if isdirectory('.git')
nnoremap <C-P> :GFiles<CR>
else
nnoremap <C-P> :Files<CR>
endif

Loading…
Cancel
Save