petertriho / cmp-git

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

Custom behaviour for trigger #27

Closed ner0-m closed 3 years ago

ner0-m commented 3 years ago

With more and more behavior being added, I find myself wanting a way to easily add my own triggers. E.g. ; displaying commits sorted differently than :. One symbol only showing open issues the next only showing closed ones and such.

So it would be nice to just have a very easy way to "register" a trigger, get the items I want (PRs, MRs or issues with some config), maybe sort them display them specifically or whatever and hand it to cmp.