Skip to content

Commit

Permalink
refactor(gitsigns): replace deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
n3wborn committed Feb 1, 2025
1 parent d0b14bc commit 23f20b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/custom/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ u.map('v', '<leader>hr', function()
gitsigns.reset_hunk({ vim.fn.line('.'), vim.fn.line('v') })
end)
u.map('n', '<leader>hS', gitsigns.stage_buffer)
u.map('n', '<leader>hu', gitsigns.undo_stage_hunk)
u.map('n', '<leader>hu', gitsigns.stage_hunk)
u.map('n', '<leader>hR', gitsigns.reset_buffer)
u.map('n', '<leader>hr', gitsigns.reset_hunk)
u.map('n', '<leader>hp', gitsigns.preview_hunk)
Expand All @@ -110,7 +110,7 @@ u.map('n', '<leader>hd', gitsigns.diffthis)
u.map('n', '<leader>hD', function()
gitsigns.diffthis('~')
end)
u.map('n', '<leader>td', gitsigns.toggle_deleted)
u.map('n', '<leader>td', gitsigns.preview_hunk_inline)

-- Text object
u.map({ 'o', 'x' }, 'ih', ':<C-U>Gitsigns select_hunk<CR>')
Expand Down
1 change: 1 addition & 0 deletions lua/plugins/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return {
opts = {
bigfile = { enabled = true },
dashboard = { enabled = true },
explorer = { enabled = true },
indent = { enabled = true },
input = { enabled = true },
---@type snacks.lazygit.Config
Expand Down

0 comments on commit 23f20b8

Please sign in to comment.