Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-30T22:42:38.000Z (5 months ago)
- Last Synced: 2024-08-01T19:46:24.871Z (5 months ago)
- Topics: commitlint, conventional-commits, lernajs, lua, neovim, neovim-plugin, nvim-cmp
- Language: Lua
- Homepage:
- Size: 5.86 KB
- Stars: 62
- Watchers: 6
- Forks: 4
- 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/#/):
![example_1](https://user-images.githubusercontent.com/9190258/139169092-a44587c8-725c-4296-b2bf-24fb6dbc381a.png)
If you have [Lerna](https://lerna.js.org/), completes your local packages in the scope:
![example_2](https://user-images.githubusercontent.com/9190258/139169114-d6832cab-a123-4a96-a92f-6b84e11f028b.png)
## Setup
Setup in `after/ftplugin/gitcommit.lua`
```lua
require'cmp'.setup.buffer {
sources = require'cmp'.config.sources(
{{ name = 'conventionalcommits' }},
{{ name = 'buffer' }}
),
}
```