feat(nvim): configure Neogit

This commit is contained in:
Oliver Davies 2022-02-17 20:37:37 +00:00
parent 314d254069
commit 1e7f350a3b

View file

@ -0,0 +1,14 @@
local status_ok, neogit = pcall(require, "neogit")
if not status_ok then
return
end
neogit.setup {
disable_commit_confirmation = true,
}
local nmap = require('opdavies.keymap').nmap
nmap({ "<leader>gg", "<cmd>Neogit<cr>" })
nmap({ "<leader>gl", "<cmd>Neogit log<cr>" })
nmap({ "<leader>gp", "<cmd>Neogit push<cr>" })