diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim index 2b303f7..09b1757 100644 --- a/ftplugin/gitcommit.vim +++ b/ftplugin/gitcommit.vim @@ -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 :LazyGit