diff options
author | Chris Patti <feoh@feoh.org> | 2023-05-15 12:25:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 12:25:01 -0400 |
commit | ded185411ffa0573a1096e5b3abad28539d89aa8 (patch) | |
tree | 040894fffdb7dc9ea36a0fa9a3ccbde6eb8e59a7 /init.lua | |
parent | ce2981db4b0bd379aa1a8128bfcabe5f8dea892f (diff) | |
parent | e15e50edaf7f77830d8831ba7dc8c6d28906d214 (diff) |
Merge pull request #203 from luizcalliari/master
Features to move to diffs and show the preview values.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 }, }, |