nvim-config

Log | Files | Refs | Submodules | README

commit 35bf6f6cca74dc42fc385ca9b1df18638db5cbf0
parent 28311ee85ee62f495997777b66d6c0618008581f
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date:   Wed, 18 May 2022 14:06:58 +0200

Configure more neogit

Diffstat:
Mlua/neogit-config.lua | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/lua/neogit-config.lua b/lua/neogit-config.lua @@ -28,3 +28,11 @@ 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, +})