local actions = require("diffview.actions") require("diffview").setup({ enhanced_diff_hl = true, keymaps = { view = { ["gq"] = "DiffviewClose", }, file_panel = { ["gq"] = "DiffviewClose", }, file_history_panel = { ["gq"] = "DiffviewClose", }, } }) vim.keymap.set('v', 'gl', [['<,'>DiffviewFileHistory]], { noremap = false, silent = true, desc = "Toggle [G]it [L]og of selected lines" }) vim.keymap.set('n', 'gL', [[DiffviewFileHistory]], { noremap = false, silent = true, desc = "Toggle [G]it [L]og of current branch" }) vim.keymap.set('n', 'gl', [[DiffviewFileHistory %]], { noremap = false, silent = true, desc = "Toggle [G]it [L]og of current file history" }) vim.keymap.set('n', 'gd', [[DiffviewOpen]], { noremap = false, silent = true, desc = "[G]it [D]iff current file against index" })