feat(nvim): configure Neogit
This commit is contained in:
parent
314d254069
commit
1e7f350a3b
14
roles/neovim/files/after/plugin/git.lua
Normal file
14
roles/neovim/files/after/plugin/git.lua
Normal 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>" })
|
Loading…
Reference in a new issue