davidsierradz / cmp-conventionalcommits

(WIP) nvim-cmp source for autocompleting git commits with conventional commits types and lerna packages as scope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmp-conventionalcommits

Alpha — Work in progress

Conventional Commits source for nvim-cmp.

Reads your configured scopes from commitlint:

example_1

If you have Lerna, completes your local packages in the scope:

example_2

Setup

Setup in after/ftplugin/gitcommit.lua

require'cmp'.setup.buffer {
  sources = require'cmp'.config.sources(
    {{ name = 'conventionalcommits' }},
    {{ name = 'buffer' }}
  ),
}

About

(WIP) nvim-cmp source for autocompleting git commits with conventional commits types and lerna packages as scope

License:MIT License


Languages

Language:Lua 100.0%