commit 9e04b06fcf0967495610696124a69e353b53aa57
parent 5e92de0dd38dfd03db34b9c5d2e0bc82718a37fc
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date: Fri, 10 Jun 2022 13:09:28 +0200
fix(neogit): avoid error on exit
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/lua/neogit-config.lua b/lua/neogit-config.lua
@@ -29,10 +29,3 @@ neogit.setup {
vim.keymap.set('n', '<Leader>c', function() neogit.open{ 'commit' } end)
vim.keymap.set('n', '<Leader>p', function() neogit.open{ 'push' } end)
-
-local group = vim.api.nvim_create_augroup('MyCustomNeogitEvents', { clear = true })
-vim.api.nvim_create_autocmd('User', {
- pattern = 'NeogitPushComplete',
- group = group,
- callback = neogit.close,
-})