Telescope picker of git diffs between commits
Install with your favorite plugin manager and add
with packer
use {
'paopaol/telescope-git-diffs.nvim',
requires = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
},
}
require('telescope').load_extension('git_diffs')
somewhere after loading telescope.
The extension provides two new pickers:
:Telescope git_diffs diff_commits
Lua equivalent:
require('telescope').extensions.git_diffs.diff_commits()
require('telescope').setup {
extensions = {
git_diffs = {
enable_preview_diff = true
}
}
}