diff --git a/nvim/init.vim b/nvim/init.vim index 6c8247c..aa0ad1e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -68,4 +68,9 @@ nmap :ls " shortcuts nnoremap :Goyo -nnoremap :Files +" check if git dir, then use :GFiles for fzf +if isdirectory('.git') + nnoremap :GFiles +else + nnoremap :Files +endif