nvim: gitlinker: fix/add gentoo repos
This commit is contained in:
parent
eb92e19546
commit
058170583c
|
@ -44,11 +44,15 @@ require('gitsigns').setup({
|
|||
|
||||
require('gitlinker').setup({
|
||||
callbacks = {
|
||||
-- ['schlomp.space'] = function(url_data)
|
||||
-- url_data.host = 'schlomp.space'
|
||||
-- return require('gitlinker.hosts').get_gitea_type_url(url_data)
|
||||
-- end,
|
||||
['schlomp.space'] = require('gitlinker.hosts').get_gitea_type_url,
|
||||
['git.gentoo.org'] = require('gitlinker.hosts').get_cgit_type_url,
|
||||
['git.gentoo.org'] = function(url_data)
|
||||
url_data.host = 'gitweb.gentoo.org'
|
||||
return require('gitlinker.hosts').get_cgit_type_url(url_data)
|
||||
end,
|
||||
['anongit.gentoo.org'] = function(url_data)
|
||||
url_data.host = 'gitweb.gentoo.org'
|
||||
url_data.repo = url_data.repo:gsub('^git/', '', 1)
|
||||
return require('gitlinker.hosts').get_cgit_type_url(url_data)
|
||||
end,
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user