summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-05-18 10:59:18 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-05-18 10:59:18 -0400
commit13b03140c64431efc317a6bff40d19fcd9c10cc8 (patch)
tree389ff91df83c8c79ce5017aed4f0c0391280969f
parentafd7eb09ecc31e26ff2cae640cee5a17dd3236a7 (diff)
Keymaps: show git branches
I mostly do this in the command line, but it's cool in vim too.
-rw-r--r--after/plugin/which-key.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua
index 2cd40aa..92053cb 100644
--- a/after/plugin/which-key.lua
+++ b/after/plugin/which-key.lua
@@ -61,6 +61,8 @@ function whichkey_setup()
t = { "<cmd>Git add %<CR>", "Stage this file"}
},
b = { "<cmd>BlamerToggle<CR>", "Turn on Git Blamer"},
+ -- TODO: I wonder if I can get this to use my git branches alias.
+ B = { "<cmd>Git branch<CR>", "Open buffer to checkout branch (Use \"coo\" over branch to checkout)" } ,
c = {
name = "Commit",
a = {"<cmd>Git commit --amend<CR>", "Amend commit"},