nvim: lua: modules: gitsigns: Add preview hunk feature now available upstream

This commit is contained in:
Sanchayan Maity 2020-11-17 18:19:34 +05:30
parent 603aa8bc56
commit 7bb5343314

View file

@ -16,9 +16,11 @@ require('gitsigns').setup {
['n ghs'] = '<cmd>lua require"gitsigns".stage_hunk()<CR>', ['n ghs'] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
['n ghu'] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>', ['n ghu'] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
['n ghr'] = '<cmd>lua require"gitsigns".reset_hunk()<CR>', ['n ghr'] = '<cmd>lua require"gitsigns".reset_hunk()<CR>',
['n ghp'] = '<cmd>lua require"gitsigns".preview_hunk()<CR>',
}, },
watch_index = { watch_index = {
interval = 1000 interval = 1000
}, },
sign_priority = 6, sign_priority = 6,
status_formatter = nil,
} }