aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/after/ftplugin/gitrebase.lua
blob: 1bfcd69f5b36db7e3fe18e71dd0e43e28e8bbae8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")