SkillAgentSearch skills...

Gitlogdiff.nvim

Diff between multiple git commits, similar to JetBrains's git log.

Install / Use

/learn @Salanoid/Gitlogdiff.nvim
About this skill

Quality Score

0/100

Supported Platforms

JetBrains

README

gitlogdiff.nvim

CI

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”.

Preview

Features

  • Lists recent commits using git log (configurable max_count)
  • Toggle selection with space, navigate with j/k
  • Press Enter to open diffs in [diffview.nvim]
    • 1 selected commit → diff that commit against its parent (<hash>^..<hash>)
    • 2 selected commits → diff between the two commits

Requirements

Installation

lazy.nvim

<!-- suggested:start -->
{
  "Salanoid/gitlogdiff.nvim",
  main = "gitlogdiff",
  dependencies = {
    "sindrets/diffview.nvim",
  },
  cmd = "GitLogDiff",
  opts = { max_count = 300 },
}
<!-- suggested:end -->

packer.nvim

use({
  "Salanoid/gitlogdiff.nvim",
  requires = {
    "sindrets/diffview.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).

Usage

  • Run :GitLogDiff inside a Git repository
  • Navigate with j/k
  • Toggle selection with <space>
  • Press <CR> to open diffs in Diffview
  • Press q to close the list

Configuration

require("gitlogdiff").setup({
  max_count = 300, -- how many commits to list
})

Troubleshooting

  • “No git commits found”: you are likely not in a Git repo (or max_count is 0)
  • “git log failed …”: check that git is installed and available in $PATH

Roadmap / Notes

  • Should work with other diff viwers plugins for example with: [esmuellert/codediff.nvim]: https://github.com/esmuellert/codediff.nvim

License

MIT — see LICENSE.

View on GitHub
GitHub Stars20
CategoryDevelopment
Updated11d ago
Forks2

Languages

Lua

Security Score

95/100

Audited on Mar 23, 2026

No findings