mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 21:25:11 +00:00
feat(gitbrowse): add support for git.sr.ht (#1297)
Simply upstreaming this from my own config. Signed-off-by: Tristan Partin <tristan@partin.io>
This commit is contained in:
parent
c7bdade05f
commit
a3b47e5202
1 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,12 @@ local defaults = {
|
|||
permalink = "/src/{commit}/{file}#lines-{line_start}-L{line_end}",
|
||||
commit = "/commits/{commit}",
|
||||
},
|
||||
["git.sr.ht"] = {
|
||||
branch = "/tree/{branch}",
|
||||
file = "/tree/{branch}/item/{file}",
|
||||
permalink = "/tree/{commit}/item/{file}#L{line_start}",
|
||||
commit = "/commit/{commit}",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue