style: format

This commit is contained in:
Folke Lemaitre 2024-07-07 20:35:52 +02:00
parent 6ba1ae87e4
commit 702997084a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -159,17 +159,18 @@ function M.blame_line(opts)
return require("lazy.util").float_cmd(cmd, opts)
end
-- stylua: ignore
M.remote_patterns = {
{ "^(https?://.*)%.git$", "%1" },
{ "^git@(.+):(.+)%.git$", "https://%1/%2" },
{ "^git@(.+):(.+)$", "https://%1/%2" },
{ "^git@(.+)/(.+)$", "https://%1/%2" },
{ "^ssh://git@(.*)$", "https://%1" },
{ "^(https?://.*)%.git$" , "%1" },
{ "^git@(.+):(.+)%.git$" , "https://%1/%2" },
{ "^git@(.+):(.+)$" , "https://%1/%2" },
{ "^git@(.+)/(.+)$" , "https://%1/%2" },
{ "^ssh://git@(.*)$" , "https://%1" },
{ "ssh%.dev%.azure%.com/v3/(.*)/(.*)$", "dev.azure.com/%1/_git/%2" },
{ "^https://%w*@(.*)", "https://%1" },
{ "^git@(.*)", "https://%1" },
{ ":%d+", "" },
{ "%.git$", "" },
{ "^https://%w*@(.*)" , "https://%1" },
{ "^git@(.*)" , "https://%1" },
{ ":%d+" , "" },
{ "%.git$" , "" },
}
---@param remote string