From b4b06c048192db65f79a4232bda6f7f79f303b43 Mon Sep 17 00:00:00 2001 From: 409 <409dev@protonmail.com> Date: Fri, 12 Dec 2025 19:53:33 +0100 Subject: [PATCH] new git keybindings --- lua/409/plugins/fzf.lua | 7 +++++++ lua/409/plugins/git.lua | 7 ++++++- lua/409/plugins/navigation.lua | 13 ++++++++++--- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/lua/409/plugins/fzf.lua b/lua/409/plugins/fzf.lua index 4aa0d9c..ed8caea 100644 --- a/lua/409/plugins/fzf.lua +++ b/lua/409/plugins/fzf.lua @@ -28,6 +28,13 @@ return { ":FzfLua lsp_code_actions", desc = "Code actions (Preview)", }, + { + "", + function() + require('fzf-lua').buffers() + end, + desc = "Find buffers", + }, }, config = function(_, opts) require("fzf-lua").setup(opts) diff --git a/lua/409/plugins/git.lua b/lua/409/plugins/git.lua index 7fa330c..8dcea60 100644 --- a/lua/409/plugins/git.lua +++ b/lua/409/plugins/git.lua @@ -47,10 +47,15 @@ return { ":Gitsigns prev_hunk", desc = "Jump to previous hunk", }, + { + "gl", + ":Gitsigns blame_line", + desc = "Show blame (line)" + } }, opts = { current_line_blame_opts = { - delay = 1000, + delay = 0, }, preview_config = { border = "single", diff --git a/lua/409/plugins/navigation.lua b/lua/409/plugins/navigation.lua index 959739e..6c03edb 100644 --- a/lua/409/plugins/navigation.lua +++ b/lua/409/plugins/navigation.lua @@ -152,11 +152,18 @@ return { desc = "Live grep (root dir)", }, { - "", + "pgc", function() - require('fzf-lua').buffers() + require("telescope.builtin").git_commits() end, - desc = "Find buffers", + desc = "Find git commits", + }, + { + "pgb", + function() + require("telescope.builtin").git_branches() + end, + desc = "Find git branches", }, }, config = function(plugin, opts)