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

How to use external libraries. #62

Open
zebult opened this issue Nov 14, 2016 · 6 comments
Open

How to use external libraries. #62

zebult opened this issue Nov 14, 2016 · 6 comments

Comments

@zebult
Copy link

zebult commented Nov 14, 2016

Problems summary

Can't use auto complete by external libraries.
I try this, but not auto and very slowly.

setlocal path+=/Applications/Cocos/Cocos2d-x/cocos2d-x-3.6/cocos/

<C-x><C-i>

looks like issue #34, but not fix think.
I want to use "cocos2d-x" library.

Expected

Not use <C-x><C-i>(want auto complete)
and more speedy.
This image is use <C-x><C-i> result.
img

Environment Information

  • OS: OS X EI Capitan 10.11.6
  • Neovim version: NVIM 0.1.6

init.vim

setlocal path+=/Applications/Cocos/Cocos2d-x/cocos2d-x-3.6/cocos/
let g:deoplete#sources#clang#libclang_path = '/Library/Developer/CommandLineTools/usr/lib/libclang.dylib'
let g:deoplete#sources#clang#clang_header = '/Library/Developer/CommandLineTools/usr/lib/clang'
@Shougo
Copy link
Collaborator

Shougo commented Nov 14, 2016

You should install neoinclude.
It searches from path directory.

https://github.com/Shougo/neoinclude.vim

@zebult
Copy link
Author

zebult commented Nov 16, 2016

Thank you.
add let g:neoinclude#_paths = '/Applications/Cocos/Cocos2d-x/cocos2d-x-3.6/cocos' then
I can auto complete,
but Not analyzed? syntax is wrong.

Don't use <C-x><C-i>. (auto complete)
img2

mistake complete.
img3

@Shougo
Copy link
Collaborator

Shougo commented Nov 16, 2016

but Not analyzed? syntax is wrong.

Yes, it seems like <C-x><C-i>. It does not analyse syntax.

I try this, but not auto and very slowly.

You have not said about syntax analyses.

@zebult
Copy link
Author

zebult commented Nov 17, 2016

Ok. Thanks.
Unconsciously want good text editor.

@nickdiego
Copy link

Hi, first of all, thanks for this tool guys!!

I've just release a tool that generates compilation database files for make-based build systems, which I think can be used with deoplete (setting compilation db file path in .clang file). I've used it successfully to index some large AOSP modules in ~1 minute and used its output with tools like YouCompleteMe, Deoplete and Rtags.

Feel free to try it out, open issues/feature requests and send PRs :)

https://github.com/nickdiego/compiledb-generator

Thanks,
Nick

@Shougo
Copy link
Collaborator

Shougo commented Aug 3, 2017

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants