Create a per‑line permalink for the current file on GitHub, GitLab or Bitbucket and copy it to the system clipboard.
- Works with public and self‑hosted GitHub/GitLab/Bitbucket instances.
- Handles private repositories, custom hostnames and SSH URLs.
- Supports both branch names and detached‑HEAD SHA.
- Zero‑dependency – pure Lua, works with any Neovim ≥ 0.9
- Full lazy.nvim integration (key‑mapping, command, options).
default configuration:
-- lazy.nvim
require("lazy").setup({
{
"tlucanti/git-permalink.nvim",
opts = {
remote_name = "origin",
lhs = "<C-l>",
mode = "n",
}
cmd = "GitPermalink",
},
})