Add check to see if g:lazygit_opened exists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user