2017-11-05 13:44:33 +08:00
|
|
|
if g:spacevim_autocomplete_method ==# 'ycm'
|
|
|
|
function! s:disable_autocomplete() abort
|
|
|
|
|
|
|
|
endfunction
|
|
|
|
function! s:enable_autocomplete() abort
|
|
|
|
|
|
|
|
endfunction
|
|
|
|
elseif g:spacevim_autocomplete_method ==# 'neocomplete'
|
|
|
|
function! s:disable_autocomplete() abort
|
|
|
|
NeoCompleteLock
|
|
|
|
endfunction
|
|
|
|
function! s:enable_autocomplete() abort
|
|
|
|
NeoCompleteUnlock
|
|
|
|
endfunction
|
|
|
|
elseif g:spacevim_autocomplete_method ==# 'neocomplcache' "{{{
|
|
|
|
function! s:disable_autocomplete() abort
|
2017-11-05 14:28:51 +08:00
|
|
|
NeoComplCacheDisable
|
2017-11-05 13:44:33 +08:00
|
|
|
endfunction
|
|
|
|
function! s:enable_autocomplete() abort
|
2017-11-05 14:28:51 +08:00
|
|
|
NeoComplCacheEnable
|
2017-11-05 13:44:33 +08:00
|
|
|
endfunction
|
|
|
|
elseif g:spacevim_autocomplete_method ==# 'deoplete'
|
|
|
|
function! s:disable_autocomplete() abort
|
|
|
|
call deoplete#disable()
|
|
|
|
endfunction
|
|
|
|
function! s:enable_autocomplete() abort
|
|
|
|
call deoplete#enable()
|
|
|
|
endfunction
|
|
|
|
endif
|
|
|
|
" Called once right before you start selecting multiple cursors
|
|
|
|
function! Multiple_cursors_before()
|
|
|
|
call s:disable_autocomplete()
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
" Called once only when the multiple selection is canceled (default <Esc>)
|
|
|
|
function! Multiple_cursors_after()
|
|
|
|
call s:enable_autocomplete()
|
|
|
|
endfunction
|
|
|
|
" vim:set et sw=2 cc=80:
|