new git keybindings

This commit is contained in:
2025-12-12 19:53:33 +01:00
parent 6fdfbd74cf
commit b4b06c0481
3 changed files with 23 additions and 4 deletions

View File

@@ -28,6 +28,13 @@ return {
":FzfLua lsp_code_actions<CR>",
desc = "Code actions (Preview)",
},
{
"<C-b>",
function()
require('fzf-lua').buffers()
end,
desc = "Find buffers",
},
},
config = function(_, opts)
require("fzf-lua").setup(opts)

View File

@@ -47,10 +47,15 @@ return {
":Gitsigns prev_hunk<CR>",
desc = "Jump to previous hunk",
},
{
"<leader>gl",
":Gitsigns blame_line<CR>",
desc = "Show blame (line)"
}
},
opts = {
current_line_blame_opts = {
delay = 1000,
delay = 0,
},
preview_config = {
border = "single",

View File

@@ -152,11 +152,18 @@ return {
desc = "Live grep (root dir)",
},
{
"<C-b>",
"<leader>pgc",
function()
require('fzf-lua').buffers()
require("telescope.builtin").git_commits()
end,
desc = "Find buffers",
desc = "Find git commits",
},
{
"<leader>pgb",
function()
require("telescope.builtin").git_branches()
end,
desc = "Find git branches",
},
},
config = function(plugin, opts)