Skip to content

Commit

Permalink
Reset hunk in neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Aug 20, 2024
1 parent e2facb6 commit af14671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stowed-files/nvim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ require("lazy").setup({
map('n', '<leader>hS', ':Gitsigns undo_stage_hunk<CR>')
-- <leader>hP Preview current hunk
map('n', '<leader>hP', ':Gitsigns preview_hunk<CR>')
-- <leader>hr Restore current hunk
map('n', '<leader>hr', ':Gitsigns reset_hunk<CR>')
map('v', '<leader>hr', ':Gitsigns reset_hunk<CR>')

-- Toggle options
-- <leader>gB show blame for current line
Expand Down

0 comments on commit af14671

Please sign in to comment.