mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:40: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
|
||||
if line[start - 1] == '#'
|
||||
let s:complete_ol = 1
|
||||
return start + 1
|
||||
else
|
||||
return start
|
||||
endif
|
||||
return start
|
||||
else
|
||||
if s:complete_ol == 1
|
||||
return s:complete_pr(a:base)
|
||||
|
@ -53,9 +53,11 @@ let g:deoplete#ignore_sources.php = get(g:deoplete#ignore_sources, 'php', ['phpc
|
||||
|
||||
" 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
|
||||
let g:deoplete#omni_patterns.lua = get(g:deoplete#omni_patterns, 'lua', '.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user