Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autocomple layer #1025

Merged
merged 6 commits into from Nov 24, 2017
Merged

Update autocomple layer #1025

merged 6 commits into from Nov 24, 2017

Conversation

wsdjeg
Copy link
Member

@wsdjeg wsdjeg commented Nov 23, 2017

hi @maralla @prabirshrestha

Thanks for your work for vim's completions plugins, SpaceVim is a modularization vim config, it support neovim and vim8 in many case.

for autocompletion, the latest version of spacevim use deoplete ycm neocomplete etc, but it does not works well in many cases. for example: vim whithout python or python3 supports,

I would like to add your plugins into spacevim, and the default logic is:

    " spacevim init 
    if has('python3')
      let g:spacevim_autocomplete_method = 'deoplete'
    elseif has('lua')
      let g:spacevim_autocomplete_method = 'neocomplete'
    elseif has('python')
      let g:spacevim_autocomplete_method = 'completor'
    elseif has('timers')
      let g:spacevim_autocomplete_method = 'asyncomplete'
    else
      let g:spacevim_autocomplete_method = 'neocomplcache'
    endif
" load custome config
" user can set the autocomplete methon or enable ycm 
"
"
"
    if g:spacevim_enable_neocomplcache
      let g:spacevim_autocomplete_method = 'neocomplcache'
    endif
    if g:spacevim_enable_ycm
      if has('python') || has('python3')
        let g:spacevim_autocomplete_method = 'ycm'
      else
        call SpaceVim#logger#warn('YCM need +python or +python3 support, force to using ' . g:spacevim_autocomplete_method)
      endif
    endif

@ghost ghost assigned wsdjeg Nov 23, 2017
@ghost ghost added the WIP Work In Progress label Nov 23, 2017
@wsdjeg wsdjeg changed the title Add too completion plugins Update autocomple layer Nov 23, 2017
@wsdjeg wsdjeg merged commit e17bd33 into dev Nov 24, 2017
@ghost ghost removed the WIP Work In Progress label Nov 24, 2017
@wsdjeg wsdjeg deleted the autocomplete_layer branch November 24, 2017 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant