mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
73 lines
2.9 KiB
VimL
73 lines
2.9 KiB
VimL
" deoplete options
|
|
let g:deoplete#enable_at_startup = get(g:, 'deoplete#enable_at_startup', 1)
|
|
let g:deoplete#enable_ignore_case = get(g:, 'deoplete#enable_ignore_case', 1)
|
|
let g:deoplete#enable_smart_case = get(g:, 'deoplete#enable_smart_case', 1)
|
|
let g:deoplete#enable_camel_case = get(g:, 'deoplete#enable_camel_case', 1)
|
|
let g:deoplete#enable_refresh_always = get(g:, 'deoplete#enable_refresh_always', 1)
|
|
let g:deoplete#max_abbr_width = get(g:, 'deoplete#max_abbr_width', 0)
|
|
let g:deoplete#max_menu_width = get(g:, 'deoplete#max_menu_width', 0)
|
|
" init deoplet option dict
|
|
let g:deoplete#ignore_sources = get(g:,'deoplete#ignore_sources',{})
|
|
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
|
|
let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {})
|
|
|
|
" java && jsp
|
|
let g:deoplete#omni#input_patterns.java = get(g:, 'deoplete#omni#input_patterns', [
|
|
\'[^. \t0-9]\.\w*',
|
|
\'[^. \t0-9]\->\w*',
|
|
\'[^. \t0-9]\::\w*',
|
|
\])
|
|
let g:deoplete#omni#input_patterns.jsp = get(g:, 'deoplete#omni#input_patterns', ['[^. \t0-9]\.\w*'])
|
|
if g:spacevim_enable_javacomplete2_py
|
|
let g:deoplete#ignore_sources.java = get(g:, 'deoplete#ignore_sources', ['omni'])
|
|
call deoplete#custom#set('javacomplete2', 'mark', '')
|
|
else
|
|
let g:deoplete#ignore_sources.java = get(g:, 'deoplete#ignore_sources', ['javacomplete2'])
|
|
call deoplete#custom#set('omni', 'mark', '')
|
|
endif
|
|
|
|
" go
|
|
let g:deoplete#ignore_sources.go = get(g:, 'deoplete#ignore_sources', ['omni'])
|
|
call deoplete#custom#set('go', 'mark', '')
|
|
call deoplete#custom#set('go', 'rank', 9999)
|
|
|
|
" perl
|
|
let g:deoplete#omni#input_patterns.perl = get(g:, 'deoplete#omni#input_patterns', [
|
|
\'[^. \t0-9]\.\w*',
|
|
\'[^. \t0-9]\->\w*',
|
|
\'[^. \t0-9]\::\w*',
|
|
\])
|
|
|
|
" javascript
|
|
let g:deoplete#omni#input_patterns.javascript = get(g:, 'deoplete#omni#input_patterns', ['[^. \t0-9]\.\w*'])
|
|
|
|
" php
|
|
let g:deoplete#omni#input_patterns.php = get(g:, 'deoplete#omni#input_patterns', [
|
|
\'[^. \t0-9]\.\w*',
|
|
\'[^. \t0-9]\->\w*',
|
|
\'[^. \t0-9]\::\w*',
|
|
\])
|
|
let g:deoplete#ignore_sources.php = get(g:, 'deoplete#ignore_sources', ['omni', 'around', 'member'])
|
|
call deoplete#custom#set('phpcd', 'mark', '')
|
|
call deoplete#custom#set('phpcd', 'input_pattern', '\w*|[^. \t]->\w*|\w*::\w*')
|
|
|
|
" lua
|
|
let g:deoplete#omni_patterns.lua = get(g:, 'deoplete#omni_patterns', '.')
|
|
|
|
" c c++
|
|
call deoplete#custom#set('clang2', 'mark', '')
|
|
let g:deoplete#ignore_sources.c = get(g:, 'deoplete#ignore_sources', ['omni'])
|
|
|
|
" rust
|
|
let g:deoplete#ignore_sources.rust = get(g:, 'deoplete#ignore_sources', ['omni'])
|
|
call deoplete#custom#set('racer', 'mark', '')
|
|
|
|
" public settings
|
|
call deoplete#custom#set('_', 'matchers', ['matcher_full_fuzzy'])
|
|
let g:deoplete#ignore_sources._ = get(g:, 'deoplete#ignore_sources', ['around'])
|
|
inoremap <expr><C-h> deoplete#mappings#smart_close_popup()."\<C-h>"
|
|
inoremap <expr><BS> deoplete#mappings#smart_close_popup()."\<C-h>"
|
|
set isfname-==
|
|
|
|
" vim:set et sw=2:
|