Skip to content
Discussion options

You must be logged in to vote

I've got this binding to do that:

		{
			"<leader>gy",
			function()
				Snacks.gitbrowse.open({
					open = function(url)
						vim.fn.setreg("+", url)
						vim.notify("Yanked url to clipboard")
					end,
				})
			end,
			desc = "Copy line(s) link",
			mode = { "n", "v" },
		},

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@achojo
Comment options

Answer selected by achojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants