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 })