1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 13:40:04 +08:00

Fix deoplete support

This commit is contained in:
wsdjeg 2018-02-03 19:49:18 +08:00
parent 1c562abed1
commit 181e778166
3 changed files with 26 additions and 6 deletions

View File

@ -98,7 +98,7 @@ let g:spacevim_realtime_leader_guide = 1
" let g:spacevim_enable_key_frequency = 1 " let g:spacevim_enable_key_frequency = 1
" < " <
let g:spacevim_enable_key_frequency = 0 let g:spacevim_enable_key_frequency = 0
if has('python3') && SpaceVim#util#haspyxlib('neovim') if has('python3') && SpaceVim#util#haspy3lib('neovim')
"" ""
" Set the autocomplete engine of spacevim, the default logic is: " Set the autocomplete engine of spacevim, the default logic is:
" > " >

View File

@ -29,13 +29,26 @@ function! SpaceVim#util#echoWarn(msg) abort
endfunction endfunction
function! SpaceVim#util#haspyxlib(lib) abort function! SpaceVim#util#haspyxlib(lib) abort
try try
if has('nvim')
exe 'py import ' . a:lib
else
exe 'pyx import ' . a:lib exe 'pyx import ' . a:lib
endif catch
return 0
endtry
return 1
endfunction
function! SpaceVim#util#haspylib(lib)
try
exe 'py import ' . a:lib
catch
return 0
endtry
return 1
endfunction
function! SpaceVim#util#haspy3lib(lib)
try
exe 'py3 import ' . a:lib
catch catch
return 0 return 0
endtry endtry

View File

@ -481,6 +481,13 @@ Enable/Disable filetypeicon column in vimfiler buffer, default is 0.
The host file url. This option is for Chinese users who can not use Google and The host file url. This option is for Chinese users who can not use Google and
Twitter. Twitter.
*g:neomake_echo_current_error*
neomake/neomake {{{ This setting will echo the error for the line your cursor
is on, if any.
*g:ale_echo_delay*
w0rp/ale {{{
============================================================================== ==============================================================================
COMMANDS *SpaceVim-commands* COMMANDS *SpaceVim-commands*