diff --git a/nvim/lua/settings/lazy/plugins/neogit.lua b/nvim/lua/settings/lazy/plugins/neogit.lua index bc38ad5..a67fe65 100644 --- a/nvim/lua/settings/lazy/plugins/neogit.lua +++ b/nvim/lua/settings/lazy/plugins/neogit.lua @@ -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({ + ["g"] = { + name = "Neogit", + g = { + function() + neogit.open() + end, + "Open Neogit" + }, + c = { + function() + neogit.open({ "commit" }) + end, + "Open Neogit commit" + } + } + }) + end }