diff --git a/lua/astrocommunity/git/gitlinker-nvim/README.md b/lua/astrocommunity/git/gitlinker-nvim/README.md new file mode 100644 index 000000000..46dd45ca7 --- /dev/null +++ b/lua/astrocommunity/git/gitlinker-nvim/README.md @@ -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**: diff --git a/lua/astrocommunity/git/gitlinker-nvim/init.lua b/lua/astrocommunity/git/gitlinker-nvim/init.lua new file mode 100644 index 000000000..b4701b151 --- /dev/null +++ b/lua/astrocommunity/git/gitlinker-nvim/init.lua @@ -0,0 +1,11 @@ +return { + { + "linrongbin16/gitlinker.nvim", + event = "BufRead", + keys = { + { "gy", "GitLink", desc = "Git link copy", mode = { "n", "v" } }, + { "gz", "GitLink!", desc = "Git link open", mode = { "n", "v" } }, + }, + opts = {}, + }, +}