diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim index c86024c..2b303f7 100644 --- a/ftplugin/gitcommit.vim +++ b/ftplugin/gitcommit.vim @@ -2,6 +2,6 @@ if g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr") augroup lazygit_neovim_remote autocmd! autocmd WinLeave :LazyGit - autocmd WinLeave :setglobal lazygit_opened=0 + autocmd WinLeave :let g:lazygit_opened=0 augroup END end