fix: Add missing git browse keymaps

This commit is contained in:
punkfairie 2024-11-25 21:11:18 -08:00
parent b622ddfa83
commit c7a523f4c1
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -70,7 +70,15 @@ in {
mkRaw mkRaw
# lua # lua
"function() Snacks.gitbrowse() end" "function() Snacks.gitbrowse() end"
) "Git Browse") ) "Git Browse (open)")
(keys.mk ["n" "x"] "<leader>gY" (mkRaw
# lua
''
function()
Snacks.gitbrowse({ open = function(url) vim.fn.setreg("+", url) end })
end
'') "Git Browse (copy)")
]; ];
# Toggles - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Toggles - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -