Update config files
This commit is contained in:
parent
aaf545a1a9
commit
3c3d493a0f
5 changed files with 25 additions and 270 deletions
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
20
home/dot_config/nvim/lua/plugins/snacks-gitbrowse.lua
Normal file
20
home/dot_config/nvim/lua/plugins/snacks-gitbrowse.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue