mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 03:00:04 +08:00
Fix deoplete support
This commit is contained in:
parent
1c562abed1
commit
181e778166
@ -98,7 +98,7 @@ let g:spacevim_realtime_leader_guide = 1
|
||||
" let g:spacevim_enable_key_frequency = 1
|
||||
" <
|
||||
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:
|
||||
" >
|
||||
|
@ -29,13 +29,26 @@ function! SpaceVim#util#echoWarn(msg) abort
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#util#haspyxlib(lib) abort
|
||||
|
||||
try
|
||||
if has('nvim')
|
||||
exe 'py import ' . a:lib
|
||||
else
|
||||
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
|
||||
return 0
|
||||
endtry
|
||||
|
@ -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
|
||||
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*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user