Added neogit keybindings to which-key

This commit is contained in:
2021-12-12 13:25:48 -05:00
parent f4f89ee5ed
commit 88aac72029
5 changed files with 124 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ local neogit = require('neogit')
neogit.setup {
disable_signs = false,
disable_context_highlighting = false,
disable_commit_confirmation = false,
disable_commit_confirmation = true,
-- customize displayed signs
signs = {
-- { CLOSED, OPENED }
@@ -20,10 +20,10 @@ disable_signs = false,
-- modify status buffer mappings
status = {
-- Adds a mapping with "B" as key that does the "BranchPopup" command
-- ["B"] = "BranchPopup",
-- ["C"] = "CommitPopup",
["B"] = "BranchPopup",
["C"] = "CommitPopup",
-- ["P"] = "PullPopup",
-- ["S"] = "Stage",
["S"] = "Stage",
-- ["D"] = "Discard",
-- Removes the default mapping of "s"
-- ["s"] = "",

View File

@@ -90,6 +90,11 @@ wk.register({
"Find buffer"
}
},
g = {
name = "Git",
c = { "<cmd>Neogit Commit<cr>", "Git Commit" },
g = { "<cmd>Neogit<cr>", "Open NeoGit" }
},
f = {
name = "File",
f = { "<cmd>Telescope find_files<cr>", "Find File" },