deoplete-clang icon indicating copy to clipboard operation
deoplete-clang copied to clipboard

How to use external libraries.

Open zebult opened this issue 7 years ago • 6 comments

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'

zebult avatar Nov 14 '16 13:11 zebult

You should install neoinclude. It searches from path directory.

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

Shougo avatar Nov 14 '16 18:11 Shougo

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

zebult avatar Nov 16 '16 15:11 zebult

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.

Shougo avatar Nov 16 '16 22:11 Shougo

Ok. Thanks. Unconsciously want good text editor.

zebult avatar Nov 17 '16 13:11 zebult

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

nickdiego avatar Aug 03 '17 00:08 nickdiego

Nice.

Shougo avatar Aug 03 '17 01:08 Shougo