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

Conversation

@wsdjeg
Copy link
Member

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 label Nov 23, 2017

@wsdjeg wsdjeg changed the title Add too completion plugins Update autocomple layer Nov 23, 2017

wsdjeg added 5 commits Nov 23, 2017

@wsdjeg wsdjeg merged commit e17bd33 into dev Nov 24, 2017

3 of 5 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/travis-ci/push The Travis CI build failed
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
license/cla Contributor License Agreement is signed.
Details

@ghost ghost removed the WIP label Nov 24, 2017

@wsdjeg wsdjeg deleted the autocomplete_layer branch Nov 24, 2017

@wsdjeg wsdjeg referenced this pull request Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.