1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00

Fuzzy match

This commit is contained in:
wsdjeg 2017-05-30 14:03:33 +08:00
parent 6ef5d90a5d
commit 84cea8aa98
2 changed files with 4 additions and 4 deletions

View File

@ -12,10 +12,8 @@ function! SpaceVim#plugins#gitcommit#complete(findstart, base) abort
endwhile endwhile
if line[start - 1] == '#' if line[start - 1] == '#'
let s:complete_ol = 1 let s:complete_ol = 1
return start + 1
else
return start
endif endif
return start
else else
if s:complete_ol == 1 if s:complete_ol == 1
return s:complete_pr(a:base) return s:complete_pr(a:base)

View File

@ -53,9 +53,11 @@ let g:deoplete#ignore_sources.php = get(g:deoplete#ignore_sources, 'php', ['phpc
" gitcommit " gitcommit
let g:deoplete#omni#input_patterns.gitcommit = get(g:deoplete#omni#input_patterns, 'gitcommit', [ let g:deoplete#omni#input_patterns.gitcommit = get(g:deoplete#omni#input_patterns, 'gitcommit', [
\'[ ]#.*', \'[ ]#[ 0-9a-zA-Z]*',
\]) \])
let g:deoplete#ignore_sources.gitcommit = ['neosnippet']
" lua " lua
let g:deoplete#omni_patterns.lua = get(g:deoplete#omni_patterns, 'lua', '.') let g:deoplete#omni_patterns.lua = get(g:deoplete#omni_patterns, 'lua', '.')