aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:04 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:04 +0100
commit28a15408e9fe3ceb8a66ef2750b111101879d6f8 (patch)
tree9767dc7078a45178046e46669210ee1be60982da
parent83018a0c318bbac4aaee6d205a1abc7c3deabf54 (diff)
downloaddotfiles-28a15408e9fe3ceb8a66ef2750b111101879d6f8.tar.gz
dotfiles-28a15408e9fe3ceb8a66ef2750b111101879d6f8.tar.bz2
dotfiles-28a15408e9fe3ceb8a66ef2750b111101879d6f8.zip
fix: disambiguate duplicate localleader-gc keymaps
Both git_bcommits and git_bcommits_range were bound to <localleader>gc, with the second silently shadowing the first. Split by mode: normal for buffer commits, visual for range commits.
-rw-r--r--home/.config/nvim/lua/custom/plugins/search.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/search.lua b/home/.config/nvim/lua/custom/plugins/search.lua
index b5a6835..40d8395 100644
--- a/home/.config/nvim/lua/custom/plugins/search.lua
+++ b/home/.config/nvim/lua/custom/plugins/search.lua
@@ -50,6 +50,7 @@ return {
function()
require("fzf-lua").git_bcommits()
end,
+ mode = "n",
desc = "[G]it buffer [C]commits",
},
{
@@ -57,6 +58,7 @@ return {
function()
require("fzf-lua").git_bcommits_range()
end,
+ mode = "v",
desc = "[G]it [C]commits for selected range",
},
{