justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.19k stars 64 forks source link

fugitive#detect exception #160

Closed habamax closed 4 years ago

habamax commented 4 years ago

With the recent fugitive update I get following error after pressing -:

image

In vim (nightly) and neovim (0.4.3).

habamax commented 4 years ago

Looks like @tpope removed it in this commit:

https://github.com/tpope/vim-fugitive/commit/cd7db1d57cc991b27d9c9ce6552faea3075ada61#diff-4c8459efc2f0fea43a9d26047a9e5e06R6328-R6329

habamax commented 4 years ago

I have fixed it locally by adding a file to ~/.vim/after/plugin/dirvish_fugitive_fix.vim:

" fix fugitive#detect issue 
" https://github.com/justinmk/vim-dirvish/issues/160
autocmd! dirvish_ftdetect FileType dirvish

It removes autocommand that calls fugitive#detect function in

https://github.com/justinmk/vim-dirvish/blob/c273c462d774ed2db5f6d382265cf5897e554de0/plugin/dirvish.vim#L22