Skip to content

Commit

Permalink
nvim: Replace deprecated next_hunk with nav_hunk
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Jun 18, 2024
1 parent b32cd45 commit ebdcb9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ require "lazy".setup({

local line = vim.fn.line

map("n", "]h", gs.next_hunk, "Goto Next Hunk")
map("n", "[h", gs.prev_hunk, "Goto Previous Hunk")
map("n", "]h", function() gs.nav_hunk "next" end, "Goto Next Hunk")
map("n", "[h", function() gs.nav_hunk "prev" end, "Goto Previous Hunk")

map("n", "<leader>hs", gs.stage_hunk, "Stage Hunk")
map("n", "<leader>hu", gs.undo_stage_hunk, "Undo Stage Hunk")
Expand Down

0 comments on commit ebdcb9f

Please sign in to comment.