fix: Set buffer on gitsigns.nvim mappings

This commit is contained in:
punkfairie 2024-12-05 18:11:09 -08:00
parent d8949f0cee
commit c310916b13
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -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,
}) })