From 4c99c22425a588d794eed47c4e5f7bad8a3cf9e7 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 13 Jun 2023 08:59:42 +0200 Subject: [PATCH] fix(nvim): gitsigns prev/next keymap --- home/apps/neovim/lua/plugins/git.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/home/apps/neovim/lua/plugins/git.lua b/home/apps/neovim/lua/plugins/git.lua index 27efaab..b36aa55 100644 --- a/home/apps/neovim/lua/plugins/git.lua +++ b/home/apps/neovim/lua/plugins/git.lua @@ -69,18 +69,6 @@ return { wk.register({ ["[c"] = { - function() - if vim.wo.diff then - return "]c" - end - vim.schedule(function() - gs.next_hunk() - end) - return "" - end, - "Go to Next Hunk", - }, - ["]c"] = { function() if vim.wo.diff then return "[c" @@ -90,7 +78,19 @@ return { end) return "" end, - "Go to Previous Hunk", + "Go to previous hunk", + }, + ["]c"] = { + function() + if vim.wo.diff then + return "]c" + end + vim.schedule(function() + gs.next_hunk() + end) + return "" + end, + "Go to next hunk", }, }, { expr = true })