gitsigns keymaps

This commit is contained in:
Andy Teijelo 2022-11-03 11:10:51 -04:00
parent aeca5a8d4c
commit 66001689a5

View file

@ -33,4 +33,11 @@ gitsigns.setup {
row = 0,
col = 1,
},
on_attach = function (bufnr)
local gs = package.loaded.gitsigns
local opts = { buffer=bufnr, silent=true }
vim.keymap.set('n', '<Leader>hp', gs.preview_hunk, opts)
vim.keymap.set('n', '<Leader>hb', function() gs.blame_line{full=false} end, opts)
vim.keymap.set('n', '<Leader>hB', function() gs.blame_line{full=true} end, opts)
end
}