feat(git): add diffview shortcuts

This commit is contained in:
Paul B. Kim 2026-02-17 08:59:59 +09:00
parent 7748db4117
commit 8894b26dbc
No known key found for this signature in database
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
return {
'sindrets/diffview.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
cmd = {
'DiffviewOpen',
'DiffviewClose',
'DiffviewFileHistory',
'DiffviewFocusFiles',
'DiffviewToggleFiles',
'DiffviewRefresh',
},
keys = {
{ '<leader>gd', '<cmd>DiffviewOpen<CR>', desc = '[G]it [D]iff view' },
{ '<leader>gD', '<cmd>DiffviewClose<CR>', desc = '[G]it [D]iff close' },
{ '<leader>gf', '<cmd>DiffviewFileHistory %<CR>', desc = '[G]it [F]ile history' },
{ '<leader>gF', '<cmd>DiffviewFileHistory<CR>', desc = '[G]it [F]ull history' },
},
opts = {},
}