fix: Set buffer on gitsigns.nvim mappings
This commit is contained in:
parent
d8949f0cee
commit
c310916b13
1 changed files with 85 additions and 82 deletions
|
@ -27,6 +27,8 @@ return {
|
||||||
local icons = require('icons')
|
local icons = require('icons')
|
||||||
local mkKey = MarleyVim.wkSpec(require('colors').git)
|
local mkKey = MarleyVim.wkSpec(require('colors').git)
|
||||||
require('which-key').add({
|
require('which-key').add({
|
||||||
|
{
|
||||||
|
buffer = buf,
|
||||||
mkKey(']h', function()
|
mkKey(']h', function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then
|
||||||
vim.cmd.normal({ ']c', bang = true })
|
vim.cmd.normal({ ']c', bang = true })
|
||||||
|
@ -123,6 +125,7 @@ return {
|
||||||
'',
|
'',
|
||||||
{ mode = { 'o', 'x' }, desc = 'select hunk' }
|
{ mode = { 'o', 'x' }, desc = 'select hunk' }
|
||||||
),
|
),
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue