From b254ca56f768b72b3ba136ccd81abd919523036a Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 24 May 2016 08:40:41 +0900 Subject: Fix #277 auto completion start length problem --- autoload/deoplete/init.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'autoload') diff --git a/autoload/deoplete/init.vim b/autoload/deoplete/init.vim index 9aaf5a9..801e1f4 100644 --- a/autoload/deoplete/init.vim +++ b/autoload/deoplete/init.vim @@ -88,6 +88,8 @@ function! deoplete#init#_variables() abort "{{{ " User vairables call deoplete#util#set_default( \ 'g:deoplete#enable_at_startup', 0) + call deoplete#util#set_default( + \ 'g:deoplete#auto_complete_start_length', 2) call deoplete#util#set_default( \ 'g:deoplete#enable_ignore_case', &ignorecase) call deoplete#util#set_default( @@ -186,11 +188,6 @@ function! deoplete#init#_variables() abort "{{{ \ g:deoplete#member#_prefix_patterns, \ 'lua', ['\.', ':']) "}}} - - if exists('g:deoplete#auto_complete_start_length') - call deoplete#custom#set('_', 'min_pattern_length', - \ g:deoplete#auto_complete_start_length) - endif endfunction"}}} function! deoplete#init#_context(event, sources) abort "{{{ -- cgit v1.2.3