Skip to content

About

nvim-cmp completion source for Git trailers

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

Repository files navigation

cmp-git-trailers

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.

Installation

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.

Demo

Example Git trailer and co-author completion using fionn/cmp-git-trailers

About

nvim-cmp completion source for Git trailers

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages