Files
lazygit.nvim/ftplugin/gitcommit.vim
2020-08-13 09:54:42 -06:00

8 lines
268 B
VimL

if exists("g:lazygit_opened") && g:lazygit_opened && g:lazygit_use_neovim_remote && executable("nvr")
augroup lazygit_neovim_remote
autocmd!
autocmd WinLeave <buffer> :LazyGit
autocmd WinLeave <buffer> :let g:lazygit_opened=0
augroup END
end