2022-02-17 20:37:37 +00:00
|
|
|
local status_ok, neogit = pcall(require, "neogit")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
neogit.setup {
|
|
|
|
disable_commit_confirmation = true,
|
|
|
|
}
|
|
|
|
|
2022-03-22 21:27:38 +00:00
|
|
|
local nmap = require("opdavies.keymap").nmap
|
2022-02-17 20:37:37 +00:00
|
|
|
|
2022-03-22 21:27:38 +00:00
|
|
|
nmap {
|
|
|
|
"<leader>gc",
|
|
|
|
function()
|
|
|
|
neogit.open { "commit" }
|
|
|
|
end,
|
|
|
|
}
|
|
|
|
nmap {
|
|
|
|
"<leader>gl",
|
|
|
|
function()
|
|
|
|
neogit.open { "log" }
|
|
|
|
end,
|
|
|
|
}
|
|
|
|
nmap {
|
|
|
|
"<leader>gp",
|
|
|
|
function()
|
|
|
|
neogit.open { "push" }
|
|
|
|
end,
|
|
|
|
}
|
2022-02-28 21:57:48 +00:00
|
|
|
nmap { "<leader>gs", neogit.open }
|