From 84cea8aa9811652703007b1d963566aecde8497a Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 30 May 2017 14:03:33 +0800 Subject: [PATCH] Fuzzy match --- autoload/SpaceVim/plugins/gitcommit.vim | 4 +--- config/plugins/deoplete.vim | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/SpaceVim/plugins/gitcommit.vim b/autoload/SpaceVim/plugins/gitcommit.vim index bc286c23e..093061bc5 100644 --- a/autoload/SpaceVim/plugins/gitcommit.vim +++ b/autoload/SpaceVim/plugins/gitcommit.vim @@ -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) diff --git a/config/plugins/deoplete.vim b/config/plugins/deoplete.vim index 349a2c4c6..25e6e70cd 100644 --- a/config/plugins/deoplete.vim +++ b/config/plugins/deoplete.vim @@ -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', '.')