Skip to content

Plugin to generate links to Git repositories in NeoVim.

License

Notifications You must be signed in to change notification settings

IlyasYOY/git-link.nvim

Repository files navigation

git-link.nvim

Plugin to generate links for remote repositories.

Status

Project is currently in WIP status.

Installation

Installation using wbthomason/packer.nvim:

use {
    "Ilyasyoy/coredor.nvim", -- dependency with utilities 
    "Ilyasyoy/git-link.nvim",
}

This plugin requires: IlyasYOY/coredor.nvim.

Example configuration

Put the code inside init.lua:

local git_link = require "git-link"

vim.api.nvim_create_user_command("GitRemoteCopyRepoLink", function()
    git_link.copy_repo_link()
end, {
    desc = "Copies a link to currently working repository into the clipboard",
})

vim.api.nvim_create_user_command("GitRemoteCopyRepoLinkToFile", function()
    git_link.copy_repo_link_to_file()
end, {
    desc = "Copies a link to currently working file into the clipboard",
})

vim.api.nvim_create_user_command("GitRemoteCopyRepoLinkToLine", function()
    git_link.copy_repo_link_to_line()
end, {
    desc = "Copies a link to currently working line into the clipboard",
})

About

Plugin to generate links to Git repositories in NeoVim.

Topics

Resources

License

Stars

Watchers

Forks