mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 14:32:13 +02:00
35 lines
733 B
Lua
35 lines
733 B
Lua
return {
|
|
"NeogitOrg/neogit",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim", -- required
|
|
"nvim-telescope/telescope.nvim", -- optional
|
|
"sindrets/diffview.nvim", -- optional
|
|
"ibhagwan/fzf-lua", -- optional
|
|
},
|
|
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
|
|
}
|