mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(gitbrowse): fixed urls for gitlab (#2073)
## Description
GitLab highlighting uses a different scheme for range of lines
fb2f3ce787/app/assets/javascripts/repository/mixins/highlight_mixin.js (L114)
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
This commit is contained in:
parent
fb54927ab0
commit
9ebf052fef
3 changed files with 6 additions and 6 deletions
|
|
@ -79,8 +79,8 @@ Open the repo of the active file in the browser (e.g., GitHub)
|
|||
},
|
||||
["gitlab%.com"] = {
|
||||
branch = "/-/tree/{branch}",
|
||||
file = "/-/blob/{branch}/{file}#L{line_start}-L{line_end}",
|
||||
permalink = "/-/blob/{commit}/{file}#L{line_start}-L{line_end}",
|
||||
file = "/-/blob/{branch}/{file}#L{line_start}-{line_end}",
|
||||
permalink = "/-/blob/{commit}/{file}#L{line_start}-{line_end}",
|
||||
commit = "/-/commit/{commit}",
|
||||
},
|
||||
["bitbucket%.org"] = {
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ Open the repo of the active file in the browser (e.g., GitHub)
|
|||
},
|
||||
["gitlab%.com"] = {
|
||||
branch = "/-/tree/{branch}",
|
||||
file = "/-/blob/{branch}/{file}#L{line_start}-L{line_end}",
|
||||
permalink = "/-/blob/{commit}/{file}#L{line_start}-L{line_end}",
|
||||
file = "/-/blob/{branch}/{file}#L{line_start}-{line_end}",
|
||||
permalink = "/-/blob/{commit}/{file}#L{line_start}-{line_end}",
|
||||
commit = "/-/commit/{commit}",
|
||||
},
|
||||
["bitbucket%.org"] = {
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ local defaults = {
|
|||
},
|
||||
["gitlab%.com"] = {
|
||||
branch = "/-/tree/{branch}",
|
||||
file = "/-/blob/{branch}/{file}#L{line_start}-L{line_end}",
|
||||
permalink = "/-/blob/{commit}/{file}#L{line_start}-L{line_end}",
|
||||
file = "/-/blob/{branch}/{file}#L{line_start}-{line_end}",
|
||||
permalink = "/-/blob/{commit}/{file}#L{line_start}-{line_end}",
|
||||
commit = "/-/commit/{commit}",
|
||||
},
|
||||
["bitbucket%.org"] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue