Merge pull request #203 from luizcalliari/master
Features to move to diffs and show the preview values.
This commit is contained in:
commit
ded185411f
1 changed files with 5 additions and 0 deletions
5
init.lua
5
init.lua
|
@ -111,6 +111,11 @@ require('lazy').setup({
|
|||
topdelete = { text = '‾' },
|
||||
changedelete = { text = '~' },
|
||||
},
|
||||
on_attach = function(bufnr)
|
||||
vim.keymap.set('n', '[c', require('gitsigns').prev_hunk, { buffer = bufnr, desc = 'Go to Previous Hunk' })
|
||||
vim.keymap.set('n', ']c', require('gitsigns').next_hunk, { buffer = bufnr, desc = 'Go to Next Hunk' })
|
||||
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' })
|
||||
end
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue