Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 954 Bytes

README.md

File metadata and controls

47 lines (31 loc) · 954 Bytes

Deoplete Github

Dependencies

I've tried not to replicate existing behaviour from already great plugins:

Install

Install with your favourite vim plugin manager:

Plug 'SevereOverfl0w/deoplete-github'

Add it as a deoplete source:

let g:deoplete#sources = {}
let g:deoplete#sources.gitcommit=['github']

Deoplete also needs a little configuration:

let g:deoplete#keyword_patterns = {}
let g:deoplete#keyword_patterns.gitcommit = '.+'

call deoplete#util#set_pattern(
  \ g:deoplete#omni#input_patterns,
  \ 'gitcommit', [g:deoplete#keyword_patterns.gitcommit])

Usage

In your git commit message:

  • The prefix "#" will find issue numbers for auto-completion.
  • You can also auto-complete github issue titles.