vim.pack.add({ 'https://github.com/sindrets/diffview.nvim' }) require('diffview').setup() local function map(lhs, rhs, desc) vim.keymap.set('n', lhs, rhs, { desc = desc }) end map('gd', 'DiffviewOpen', 'Diff against index') map('gc', 'DiffviewClose', 'Close diff view') map('gh', 'DiffviewFileHistory %', 'File history') map('gH', 'DiffviewFileHistory', 'Branch history')