summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/gitrebase.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-10 23:07:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-10 23:07:28 +0200
commit511efe89ed084bc922ae142d32e08427859198f4 (patch)
treefef9294b6056b6cf972ea5e689f70da8184fafae /.config/nvim/after/ftplugin/gitrebase.lua
parent64e2e90abdca04743558e3baf42a6b714b440bd0 (diff)
nvim: Completely rewrite my configuration
Diffstat (limited to '.config/nvim/after/ftplugin/gitrebase.lua')
-rw-r--r--.config/nvim/after/ftplugin/gitrebase.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/nvim/after/ftplugin/gitrebase.lua b/.config/nvim/after/ftplugin/gitrebase.lua
index 948ee30..00ee21a 100644
--- a/.config/nvim/after/ftplugin/gitrebase.lua
+++ b/.config/nvim/after/ftplugin/gitrebase.lua
@@ -1,6 +1,5 @@
-local ts_utils = require('nvim-treesitter.ts_utils')
-
local function map(lhs, rhs)
+ local ts_utils = require('nvim-treesitter.ts_utils')
vim.keymap.set('n', lhs, function()
local node = ts_utils.get_node_at_cursor()
if node == nil then
@@ -22,7 +21,8 @@ local function map(lhs, rhs)
})
end
+map('d', 'drop')
+map('f', 'fixup')
map('p', 'pick')
map('r', 'reword')
map('s', 'squash')
-map('f', 'fixup')