maralla / completor.vim

Async completion framework made ease.
MIT License
1.32k stars 62 forks source link

Question rather than issue #220

Open amgoyal opened 6 years ago

amgoyal commented 6 years ago

Hi Maralla,

Great effort for making this plugin.

I am trying to use it in C++ project, and could got it working partially. It is doing the completion but the completions are like dictionary based not in the context of the c++ object. For example if object A have function foo() and bar() then when I type A-> then the completion list looks like something below __FILE_defined __mbstate_t_defined always_inline amd64 amd64 ASMNAME ASMNAME2 __ATOMIC_ACQ_REL .... followed by 100s of other options.

I was expecting it should just list foo() bar() (maybe alongwith the constructor/destructor as well)

is the my expectation not correct and I should type the first few characters of the member variable/function?

Am i missing some setting? Do i need to install some other LSP server, if so what will be the settings for completor to make use of them.

Following is what I added in my .vimrc let g:completor_clang_binary = '/usr/local/bin/clang' let g:completor_auto_trigger = 1

vim is compiled with python but not with python3

And not related to my current problem, it would be great if this plugin supports reading compile_commands.json for getting the additional compile flags, because in big projects required flags vary from module to module.