Skip to content

Commit

Permalink
feat(git): Add gitlinker-nvim (#667)
Browse files Browse the repository at this point in the history
Co-authored-by: gacallea <gacallea@users.noreply.github.com>
  • Loading branch information
andreacfromtheapp and gacallea authored Dec 4, 2023
1 parent 454a613 commit def419e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/astrocommunity/git/gitlinker-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# gitlinker-nvim

A lua neovim plugin to generate shareable file permalinks (with line ranges)
for several git web frontend hosts. Inspired by tpope/vim-fugitive's :GBrowse

**Repository**: <https://github.com/ruifm/gitlinker.nvim>
11 changes: 11 additions & 0 deletions lua/astrocommunity/git/gitlinker-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
return {
{
"linrongbin16/gitlinker.nvim",
event = "BufRead",
keys = {
{ "<leader>gy", "<cmd>GitLink<CR>", desc = "Git link copy", mode = { "n", "v" } },
{ "<leader>gz", "<cmd>GitLink!<CR>", desc = "Git link open", mode = { "n", "v" } },
},
opts = {},
},
}

0 comments on commit def419e

Please sign in to comment.