diff --git a/modules/nixvim/plugins/util/snacks/default.nix b/modules/nixvim/plugins/util/snacks/default.nix index b2e45c2..6038dba 100644 --- a/modules/nixvim/plugins/util/snacks/default.nix +++ b/modules/nixvim/plugins/util/snacks/default.nix @@ -70,7 +70,15 @@ in { mkRaw # lua "function() Snacks.gitbrowse() end" - ) "Git Browse") + ) "Git Browse (open)") + + (keys.mk ["n" "x"] "gY" (mkRaw + # lua + '' + function() + Snacks.gitbrowse({ open = function(url) vim.fn.setreg("+", url) end }) + end + '') "Git Browse (copy)") ]; # Toggles - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -