return { "sindrets/diffview.nvim", cmd = { "DiffviewOpen", "DiffviewClose", "DiffviewToggleFiles", "DiffviewFocusFiles" }, opts = { enhanced_diff_hl = true, keymaps = { view = { ["gq"] = "DiffviewClose", }, file_panel = { ["gq"] = "DiffviewClose", }, file_history_panel = { ["gq"] = "DiffviewClose", }, }, }, keys = { { "v", "gl", "'<,'>DiffviewFileHistory", desc = "Toggle git log of selected lines" }, { "gL", "DiffviewFileHistory", desc = "Toggle git log of current branch" }, { "gl", "DiffviewFileHistory %", desc = "Toggle git log of current file history" }, { "gd", "DiffviewOpen", desc = "Git diff current file against the index" }, }, }