A tiny Neovim plugin that shows a simple, keyboard‑driven list of recent Git commits and lets you diff them quickly via Diffview.
Works great for: “show me the last N commits, let me pick one (or two) and open the diff”.

git log (configurable max_count)j/k<hash>^..<hash>)vim.system)$PATH{
"Salanoid/gitlogdiff.nvim",
main = "gitlogdiff",
dependencies = {
"sindrets/diffview.nvim",
"folke/snacks.nvim",
},
cmd = "GitLogDiff",
opts = { max_count = 300 },
}
use({
"Salanoid/gitlogdiff.nvim",
requires = {
"sindrets/diffview.nvim",
"folke/snacks.nvim",
},
config = function()
require("gitlogdiff").setup({
max_count = 300,
})
end,
})
Note: This plugin defines the :GitLogDiff command on load. If your plugin manager pre-defines lazy command stubs, gitlogdiff.nvim will safely overwrite them (we create the command with force = true).
:GitLogDiff inside a Git repositoryj/k<space><CR> to open diffs in Diffviewq to close the listrequire("gitlogdiff").setup({
max_count = 300, -- how many commits to list
})
max_count is 0)git is installed and available in $PATHMIT — see LICENSE.