~tomleb/repo-url.nvim

cd4845915ccdd916d5a48599ea12f5327839efc2 — Tom Lebreux 6 months ago ce70421
Add tree_url support for gitiles
1 files changed, 4 insertions(+), 0 deletions(-)

M lua/repo-url/init.lua
M lua/repo-url/init.lua => lua/repo-url/init.lua +4 -0
@@ 109,6 109,7 @@ M.urls = {
    end,
  },
  -- gitiles doesn't support raw_url
  -- hosts golang.org/x/{sync, tools, text, etc}
  gitiles = {
    blob_url = function(opts)
      local position = pos_to_path(opts, '#%d')


@@ 120,6 121,9 @@ M.urls = {
    history_url = function(opts)
      return string.format('%s/+log/%s/%s', opts.base_url, opts.ref, opts.filepath)
    end,
    tree_url = function(opts)
      return string.format('%s/+/%s', opts.base_url, opts.ref)
    end,
  },
  cgit = {
    blob_url = function(opts)