Copy the remote URL of the current file in to your clipboard.
🚧 Now only works for GitHub and GitLab.
Install the theme with your preferred package manager, such as folke/lazy.nvim:
{
"Rigellute/vcs-url.nvim",
}
:VCSCopyUrl
Or you can map it to a key:
local wk = require("which-key")
wk.register({
["<leader>"] = {
g = {
v = { "<cmd>VCSCopyUrl<cr>", "Copy remote URL" },
},
},
})