Skip to content

Clipped github link for select line in the currently open file in nvim.

License

Notifications You must be signed in to change notification settings

candy12t/github-link.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-link.nvim

Clipped github link for select line in the currently open file in nvim.

Requirements

  • git

Installation

lazy.nvim

{
  "candy12t/github-link.nvim",
  config = function()
    require("github-link").setup()
  end,
},

Setup

require("github-link").setup()

Usage

Select line in visual mode and execute the command.

  • :GitHubLink get_commit_link
    • generate https://github.com/OWNER/REPO/blob/COMMIT_HASH/PATH/TO/FILE#L1-L10
  • :GitHubLink get_branch_link
    • generate https://github.com/OWNER/REPO/blob/BRANCH/PATH/TO/FILE#L1-L10

License

MIT License

Author

candy12t

About

Clipped github link for select line in the currently open file in nvim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages