nvim: modules: gitsigns: Update key map as per upstream changes
This commit is contained in:
parent
6b36e648d9
commit
07739669c5
1 changed files with 11 additions and 6 deletions
|
@ -7,13 +7,18 @@ require('gitsigns').setup {
|
||||||
changedelete = {hl = 'DiffChange', text = '~'},
|
changedelete = {hl = 'DiffChange', text = '~'},
|
||||||
},
|
},
|
||||||
keymaps = {
|
keymaps = {
|
||||||
[']c'] = '<cmd>lua require("gitsigns").next_hunk()<CR>',
|
noremap = true,
|
||||||
['[c'] = '<cmd>lua require("gitsigns").prev_hunk()<CR>',
|
buffer = true,
|
||||||
['ghs'] = '<cmd>lua require("gitsigns").stage_hunk()<CR>',
|
|
||||||
['ghu'] = '<cmd>lua require("gitsigns").undo_stage_hunk()<CR>',
|
['n ]c'] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns\".next_hunk()<CR>'"},
|
||||||
['ghr'] = '<cmd>lua require("gitsigns").reset_hunk()<CR>',
|
['n [c'] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns\".prev_hunk()<CR>'"},
|
||||||
|
|
||||||
|
['n ghs'] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
|
||||||
|
['n ghu'] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
|
||||||
|
['n ghr'] = '<cmd>lua require"gitsigns".reset_hunk()<CR>',
|
||||||
},
|
},
|
||||||
watch_index = {
|
watch_index = {
|
||||||
interval = 1000
|
interval = 1000
|
||||||
}
|
},
|
||||||
|
sign_priority = 6,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue