aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/nvim/after/ftplugin/gitrebase.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim/after/ftplugin/gitrebase.lua')
-rw-r--r--dot_config/nvim/after/ftplugin/gitrebase.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/dot_config/nvim/after/ftplugin/gitrebase.lua b/dot_config/nvim/after/ftplugin/gitrebase.lua
new file mode 100644
index 0000000..1bfcd69
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/gitrebase.lua
@@ -0,0 +1,16 @@
+local function nvmap(l, r, desc)
+ vim.keymap.set(
+ { "n", "v" },
+ l,
+ ":" .. r .. "<CR>",
+ { buffer = 0, desc = "[G]it rebase " .. desc }
+ )
+end
+
+nvmap("gc", "Cycle", "[C]ycle")
+nvmap("gp", "Pick", "[P]ick")
+nvmap("ge", "Edit", "[E]dit")
+nvmap("gf", "Fixup", "[F]ixup")
+nvmap("gd", "Drop", "[D]rop")
+nvmap("gs", "Squash", "[S]quash")
+nvmap("gr", "Reword", "[R]eword")