Update config files

This commit is contained in:
Maximilian Friedersdorff 2025-02-27 13:50:17 +00:00
parent aaf545a1a9
commit 3c3d493a0f
5 changed files with 25 additions and 270 deletions

View file

@ -1,18 +0,0 @@
return {
{
"https://gitea.gwairfelin.com/max/openingh.nvim",
keys = {
{
"<leader>gB",
"<cmd>OpenInGHFile!<cr>",
desc = "Open this file in the git remote",
},
{
"<leader>gB",
"<cmd>'<,'>OpenInGHFileLines!<cr>",
desc = "Open these lines in the git remote",
mode = "v",
},
},
},
}

View file

@ -0,0 +1,20 @@
return {
{
"folke/snacks.nvim",
opts = {
gitbrowse = {
opts = {
what = "permalink",
},
config = function(opts, defaults)
opts.url_patterns["bitbucket%.org"] = {
branch = "/src/{branch}",
file = "/src/{branch}/{file}#lines-{line_start}:{line_end}",
permalink = "/src/{commit}/{file}#lines-{line_start}:{line_end}",
commit = "/commits/{commit}",
}
end,
},
},
},
}