diff --git a/core/plugins.vim b/core/plugins.vim index 12c1a49..6a94fe8 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -311,10 +311,13 @@ call utils#Cabbrev('pc', 'PlugClean') let g:deoplete#enable_at_startup = 1 " Maximum candidate window width -call deoplete#custom#source('_', 'max_menu_width', 80) +call deoplete#custom#option('max_menu_width', 80) " Minimum character length needed to activate auto-completion. -call deoplete#custom#source('_', 'min_pattern_length', 1) +call deoplete#custom#option('min_pattern_length', 1) + +" use fuzzy matcher +call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy']) " Whether to disable completion for certain syntax " call deoplete#custom#source('_', { @@ -328,20 +331,20 @@ call deoplete#custom#source('_', { " Ignore certain sources, because they only cause nosie most of the time call deoplete#custom#option('ignore_sources', { - \ '_': ['around', 'buffer', 'tag'] + \ '_': ['around', 'buffer'] \ }) " Candidate list item number limit -call deoplete#custom#option('max_list', 30) +call deoplete#custom#option('max_list', 15) " The number of processes used for the deoplete parallel feature. -call deoplete#custom#option('num_processes', 16) +call deoplete#custom#option('num_processes', 8) " The delay for completion after input, measured in milliseconds. call deoplete#custom#option('auto_complete_delay', 100) -" Enable deoplete auto-completion -call deoplete#custom#option('auto_complete', v:true) +" lower case can also match upper case (upper case are hard to type!) +call deoplete#custom#option({'camel_case': v:true,}) """""""""""""""""""""""""""" vim-lsp settings"""""""""""""""""""""""""" " whether to enable diagnostics for vim-lsp (we may want to use ALE for other