petertriho / cmp-git

Git source for nvim-cmp
MIT License
397 stars 23 forks source link

[Feature request]: Add support for co-authors and meta tags #72

Open MaSchwarz opened 1 week ago

MaSchwarz commented 1 week ago

Hi, I recently switched to nvim and discovered your plugin during the setup of my initial config. I'm loving it so far. Thanks for the great work. There's one thing that I got used to in my previous IDE and was wondering if it's possible to implement in NVIM:

When working together on a commit it's possible to credit the other person by including their name in the commit message. There are some conventions on how this should be done (e.g. here and here).

e.g.

feat: Hello World

Co-authored-by: Foo Bar <foo@bar.com>

I use this feature quite a lot in my daily work and was wondering it it's possible to autocomplete the tags (e.g. Co-authored-by, etc. ) as well as the author (e.g. Foo Bar <foo@bar.com>). I already came up with a simple git command that lists all the people who committed to a repository.

git --no-pager log --pretty="%an <%ae>" | sort -u

Is this something that would be interesting for the project? I could try to implement it myself and create a PR, but I haven't done any Lua development yet.