diff --git a/lua/lazyvim/util/lazygit.lua b/lua/lazyvim/util/lazygit.lua index 481f98a1..2532ad08 100644 --- a/lua/lazyvim/util/lazygit.lua +++ b/lua/lazyvim/util/lazygit.lua @@ -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