mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 20:10:05 +08:00
Fuzzy match
This commit is contained in:
parent
6ef5d90a5d
commit
84cea8aa98
@ -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)
|
||||||
|
@ -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', '.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user