mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 15:42:14 +02:00
added keymaps for neogit
This commit is contained in:
@@ -7,5 +7,28 @@ return {
|
|||||||
"sindrets/diffview.nvim", -- optional
|
"sindrets/diffview.nvim", -- optional
|
||||||
"ibhagwan/fzf-lua", -- 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user