- This is an integration plugin with nvim-telescope/telescope.nvim
- vim-plug
Plug 'nvim-telescope/telescope.nvim'
Plug 'senkentarou/telescope-git-log.nvim'
- Please setup as telescope extension on
init.lua
as below:
local telescope = require("telescope")
telescope.setup {
...
}
telescope.load_extension("git_log")
- example:
:lua require('telescope').extensions.git_log.list_commits_on_file()
copy
add commit hash to register (insert:<C-y>
, normal: y)blob
: show blob on file (insert:<C-o>
, normal: o)compare
show compare current commit and former one on file (insert:<C-p>
, normal: p)commit
: show commit on file (<CR>
)
- Load under development plugin files on root repository.
nvim --cmd "set rtp+=."
- this extension is very inspired by https://github.com/aaronhallaert/advanced-git-search.nvim