deoplete-clang
deoplete-clang copied to clipboard
How to use external libraries.
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.
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'
You should install neoinclude.
It searches from path
directory.
https://github.com/Shougo/neoinclude.vim
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)
mistake complete.
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.
Ok. Thanks. Unconsciously want good text editor.
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
Nice.