aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-11-13 22:13:24 +0800
committerjdhao <jdhao@hotmail.com>2020-11-13 22:13:24 +0800
commitb5087e3665fffb1caee95b3ff78130fadd613f39 (patch)
treed4a2fe0fbc23eb6fda45cb36becb86ea31915d4d
parent283d3a8b7b8340f407dcc3684e1b4190807ebf13 (diff)
update deoplete settings
-rw-r--r--core/plugins.vim17
1 files changed, 10 insertions, 7 deletions
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