https://github.com/davidsierradz/cmp-conventionalcommits
(WIP) nvim-cmp source for autocompleting git commits with conventional commits types and lerna packages as scope
https://github.com/davidsierradz/cmp-conventionalcommits
commitlint conventional-commits lernajs lua neovim neovim-plugin nvim-cmp
Last synced: 12 months ago
JSON representation
(WIP) nvim-cmp source for autocompleting git commits with conventional commits types and lerna packages as scope
- Host: GitHub
- URL: https://github.com/davidsierradz/cmp-conventionalcommits
- Owner: davidsierradz
- License: mit
- Created: 2021-10-28T00:46:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T22:42:38.000Z (over 1 year ago)
- Last Synced: 2025-03-26T11:46:42.989Z (about 1 year ago)
- Topics: commitlint, conventional-commits, lernajs, lua, neovim, neovim-plugin, nvim-cmp
- Language: Lua
- Homepage:
- Size: 5.86 KB
- Stars: 77
- Watchers: 5
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cmp-conventionalcommits
**Alpha — Work in progress**
[Conventional Commits](https://www.conventionalcommits.org) source for [`nvim-cmp`](https://github.com/hrsh7th/nvim-cmp).
Reads your configured scopes from [commitlint](https://commitlint.js.org/#/):

If you have [Lerna](https://lerna.js.org/), completes your local packages in the scope:

## Setup
Setup in `after/ftplugin/gitcommit.lua`
```lua
require'cmp'.setup.buffer {
sources = require'cmp'.config.sources(
{{ name = 'conventionalcommits' }},
{{ name = 'buffer' }}
),
}
```