diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 9f02ff1..ac6460b 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -447,14 +447,7 @@ endfunction " GFiles[?] " ------------------------------------------------------------------ -" helper function to get the git root. Uses vim-fugitive if available for EXTRA SPEED! function! s:get_git_root() - if exists('*fugitive#repo') - try - return fugitive#repo().tree() - catch - endtry - endif let root = split(system('git rev-parse --show-toplevel'), '\n')[0] return v:shell_error ? '' : root endfunction