Completion source for Git trailers.
Trailers are sourced from:
- a small built-in list of common trailers,
- the previous hundred commits (if available, asynchronously).
There are many somewhat popular trailers (see e.g. The top 1% of commit trailers). We don't intend to cover these exhaustively, although contributions by humans for useful trailers are welcome.
We also provide completion candidates for values of trailers that take an identity (e.g. Co-authored-by, Signed-off-by), sourced from previous commit authors and existing trailer values.
Install this plugin, then add it as a completion source, either generally (it will only offer completion candidates for commit messages anyway) or specifically for commit messages with
cmp.setup.filetype("gitcommit", {
---@type cmp.SourceConfig[]
sources = cmp.config.sources {
{name = "git_trailers"}
}
})or similar.
