-
Notifications
You must be signed in to change notification settings - Fork 18
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
mucomplete fail to complete correctly includes files for c/c++ #177
Comments
If , instead of typing Tab, you type CTRL-X CTRL-O, does it complete correctly? |
Ok. Have you read |
Nope, I was already using them My current config is:
I installed deoplete, and there the LC suggests auto complete correctly, not sure if that helps anything, |
Ok, thanks for the configuration details. I'll try to reproduce your issue and come back to you. |
I have tried with clangd, but I cannot reproduce your issue (using macOS here). I am not offered any completion after I suggest that you start with a minimal configuration, by adapting You mention that you are editing a new buffer. Does it make a difference if you open a file instead? Have you installed only LanguageClient-neovim or do you have other completion plugins? And which version of Vim? |
You mention that you are editing a new buffer. Does it make a difference if you open a file instead? No, it does not. Clangd or CCLS needs the compile_commands.json to give hints properly Have you installed only LanguageClient-neovim or do you have other completion plugins? Yes, I just use LanguageClient-neovim for LSP (C/C++ (CCLS) and Tex (texlab) and for auto complete I use your plugin and was using deoplete (to compare) if something went wrong. And which version of Vim? Neovim
I attached my configuration files (mucomplete, deoplete and ccls stuff) Steps I did to test: 1 - cloned my repo: https://invent.kde.org/lbiaggi/plasma-firewall Not sure what deoplete to show them it says that come from LC. Question: if it comes from LC the mucomplete would be able to see complete it right? |
MUcomplete does the same as pressing CTRL-X CTRL-O; it doesn't care which omni-completion function is used. I'll try to reproduce your issue with the additional configuration you have posted. In the meantime, can you please try the following:
If it is the same, can you try MUcomplete with a very high value for |
Sure, I did few more testing and yes the MUComplete behavior is correctly, I mean the omnifunc does not trigger with std only. What I still do not understand is why Deoplete is showing what I was expecting "correctly"? Maybe related with this https://github.com/autozimu/LanguageClient-neovim/blob/next/rplugin/python3/deoplete/sources/LanguageClientSource.py#L17 |
Should I close it or we investigate why mucomplete does not behave like deoplete? |
I think that Deoplete aggregates entries from different sources. If you can find where those entries come from (e.g., ctags, Vim’s keyword completion, …), you should be able to get roughly the same with MUcomplete. You may leave this open for now. |
hmm, did you check LanguageClientSource.py? There it defines [LC] as its identifier, in my screenshot with deoplete, it says it came from [LC] |
Hi, When using mucomplete with languageclient-neovim, can't complete correctly the includes or suggest them correctly.
Steps to reproduce:
#include <std<tab>>
it fails to identify correctly the file suggested by LC or#include <stdio.<tab>
When dot is inserted, it tries to complete the file name incorrectly becoming#include <stdio.stdio.h>
The text was updated successfully, but these errors were encountered: