gitsigns keymaps
This commit is contained in:
parent
aeca5a8d4c
commit
66001689a5
1 changed files with 7 additions and 0 deletions
|
@ -33,4 +33,11 @@ gitsigns.setup {
|
||||||
row = 0,
|
row = 0,
|
||||||
col = 1,
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue