-- Git enhancement plugins return { -- Git blame annotations in virtual text -- Shows git blame info at the end of each line -- Toggle with :GitBlameToggle { "f-person/git-blame.nvim", event = "VeryLazy", opts = { enabled = true, -- Start enabled message_template = " • • ", date_format = "%r", virtual_text_column = 80, }, }, -- Advanced git diff viewer -- Better git diff interface with file history -- Open with :DiffviewOpen, :DiffviewFileHistory { "sindrets/diffview.nvim", cmd = { "DiffviewOpen", "DiffviewClose", "DiffviewToggleFiles", "DiffviewFocusFiles", "DiffviewFileHistory" }, opts = { enhanced_diff_hl = true, view = { default = { layout = "diff2_horizontal" }, file_history = { layout = "diff2_horizontal" }, }, }, keys = { { "gd", "DiffviewOpen", desc = "Open Diffview" }, { "gh", "DiffviewFileHistory %", desc = "File History" }, { "gH", "DiffviewFileHistory", desc = "Repo History" }, }, }, }