Skip to content

Commit

Permalink
vim/telescope: git commits for buffer/selection
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaschrstnsn committed Sep 23, 2024
1 parent 9be1944 commit b930267
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions home/modules/vim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,18 @@ in
action = "<cmd>lua require('telescope.builtin').find_files({no_ignore = true, hidden = true})<cr>";
options.desc = "find file (including ignored, hidden)";
}
{
key = "<leader>fg";
mode = "n";
action = ''<cmd>Telescope git_bcommits<CR>'';
options.desc = "git commits for current buffer";
}
{
key = "<leader>fg";
mode = "v";
action = ''<cmd>Telescope git_bcommits_range<CR>'';
options.desc = "git commits for current buffer with selected range";
}
{
key = "<leader>fr";
mode = "n";
Expand Down

0 comments on commit b930267

Please sign in to comment.