Fix lazygit vim fugitive conflict

This commit is contained in:
Dheepak Krishnamurthy
2020-08-02 09:16:16 -06:00
parent 5b1e22d967
commit e72454e244
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
if g:lazygit_use_neovim_remote && executable("nvr")
if g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr")
augroup lazygit_neovim_remote
autocmd!
autocmd WinLeave <buffer> :LazyGit
autocmd WinLeave <buffer> :setglobal lazygit_opened=0
augroup END
end