Skip to content

liouk/gitlinks.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

🌀 GitLinks

Copy file/blame git links directly from neovim.

Features

Copy and Open remote file and blame links directly from neovim. All exposed commands can be used with or without a visual range; the links will be generated accordingly. The module will try to not generate or open links for files/branches/changes that don't exist on the remote, and display an error instead.

Inspired by tpope/vim-fugitive and ruifm/gitlinker.nvim.

Supported services

  • GitHub
  • GitLab

Requirements

Installation

return {
  'liouk/gitlinks.nvim',
  dependencies = { 'nvim-lua/plenary.nvim' },
  config = function()
    require('gitlinks').setup()
  end,
}

Configuration

No configuration is necessary for this plugin.

Usage

The plugin exposes the following commands:

  • :GitlinkFileCopy: copy file link
  • :GitlinkFileOpen: open file link on system browser
  • :GitlinkBlameCopy: copy file blame link
  • :GitlinkBlameOpen: open file blame link on system browser

All commands support visual ranges.

About

Copy file/blame git links directly from neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages