summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-05-24 08:40:41 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-05-24 08:40:41 +0900
commitb254ca56f768b72b3ba136ccd81abd919523036a (patch)
tree641a245a02a8c9c507efc8edd0a635c516587c18 /autoload
parent807d3e84ca37f938e7fab4034a7a491224e5d550 (diff)
downloaddeoplete.nvim-b254ca56f768b72b3ba136ccd81abd919523036a.zip
Fix #277 auto completion start length problem
Diffstat (limited to 'autoload')
-rw-r--r--autoload/deoplete/init.vim7
1 files changed, 2 insertions, 5 deletions
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
@@ -89,6 +89,8 @@ function! deoplete#init#_variables() abort "{{{
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(
\ 'g:deoplete#enable_smart_case', &smartcase)
@@ -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 "{{{