1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00
SpaceVim/config/plugins/deoplete.vim

34 lines
1.4 KiB
VimL
Raw Normal View History

2016-12-26 21:11:19 +08:00
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_ignore_case = 1
let g:deoplete#enable_smart_case = 1
let g:deoplete#enable_camel_case = 1
let g:deoplete#enable_refresh_always = 1
let g:deoplete#max_abbr_width = 0
let g:deoplete#max_menu_width = 0
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
let g:deoplete#omni#input_patterns.java = [
\'[^. \t0-9]\.\w*',
\'[^. \t0-9]\->\w*',
\'[^. \t0-9]\::\w*',
\]
let g:deoplete#omni#input_patterns.jsp = ['[^. \t0-9]\.\w*']
let g:deoplete#omni#input_patterns.php = '\h\w*\|[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
2017-01-18 00:43:36 +08:00
let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {})
2017-01-18 08:06:07 +08:00
let g:deoplete#omni_patterns.php = '->\|::'
let g:deoplete#ignore_sources = {}
2017-01-16 22:01:57 +08:00
let g:deoplete#ignore_sources.go = ['omni']
call deoplete#custom#set('go', 'mark', '')
2016-12-31 19:40:08 +08:00
if g:spacevim_enable_javacomplete2_py
2016-12-26 21:11:19 +08:00
let g:deoplete#ignore_sources.java = ['omni']
call deoplete#custom#set('javacomplete2', 'mark', '')
else
let g:deoplete#ignore_sources.java = ['javacomplete2']
call deoplete#custom#set('omni', 'mark', '')
endif
call deoplete#custom#set('_', 'matchers', ['matcher_full_fuzzy'])
2016-12-27 22:52:31 +08:00
let g:deoplete#ignore_sources._ = ['around']
2016-12-26 21:11:19 +08:00
"call deoplete#custom#set('omni', 'min_pattern_length', 0)
inoremap <expr><C-h> deoplete#mappings#smart_close_popup()."\<C-h>"
inoremap <expr><BS> deoplete#mappings#smart_close_popup()."\<C-h>"
set isfname-==