update readme

This commit is contained in:
laixintao
2019-12-02 14:54:25 +08:00
parent 328b6979f7
commit 68b35a7537
2 changed files with 6 additions and 1 deletions

View File

@@ -19,3 +19,8 @@ au User asyncomplete_setup call asyncomplete#register_source({
\ 'completor': function('asyncomplete#sources#gitcommit#completor')
\ })
```
## TODO
- [ ] Support close github issues and PR;
- [ ] Read commit logs

View File

@@ -8,7 +8,7 @@ function! asyncomplete#sources#gitcommit#completor(opt, ctx) abort
let l:startcol = l:col - l:kwlen
let l:matches = [
\ "bugfix: ", "feature: ", "[WIP] ", "fixup! "
\ "bugfix:", "feature:", "[WIP]", "fixup!"
\ ]
call asyncomplete#complete(a:opt['name'], a:ctx, l:startcol, l:matches)