added keymaps for neogit

This commit is contained in:
aminnairi
2023-12-04 19:13:45 +01:00
parent f6ed6ab7db
commit a5180fa81c
+24 -1
View File
@@ -7,5 +7,28 @@ return {
"sindrets/diffview.nvim", -- optional
"ibhagwan/fzf-lua", -- optional
},
config = true
config = function()
local whichKey = require("which-key")
local neogit = require("neogit")
neogit.setup({})
whichKey.register({
["<leader>g"] = {
name = "Neogit",
g = {
function()
neogit.open()
end,
"Open Neogit"
},
c = {
function()
neogit.open({ "commit" })
end,
"Open Neogit commit"
}
}
})
end
}