Add check to see if g:lazygit_opened exists

This commit is contained in:
Dheepak Krishnamurthy
2020-08-13 09:54:42 -06:00
parent 66874bd5f6
commit 2e7b9e7e98

View File

@@ -1,4 +1,4 @@
if g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr")
if exists("g:lazygit_opened") && g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr")
augroup lazygit_neovim_remote
autocmd!
autocmd WinLeave <buffer> :LazyGit