wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.82k stars 266 forks source link

fix(git): remove `.git` from end url only #1023

Closed EdenEast closed 2 years ago

EdenEast commented 2 years ago

Removes .git from url only if it ends with .git.

Resolves: #1022

axieax commented 2 years ago

@akinsho @EdenEast don't think the Lua pattern is entirely correct. %s.git matches a space character, then any character, then "git". The expected pattern should be %.git. I have corrected this in #1027.

This breaks the urls detected by my urlview.nvim plugin.

akinsho commented 2 years ago

@axieax thanks for raising this and the PR, didn't notice the issue 🤦🏿‍♂️

EdenEast commented 2 years ago

Ah thanks @axieax for the catch sorry about that, my mistake 🤦 .

axieax commented 2 years ago

No worries :))