Closed silgon closed 9 years ago
Firstly: I don't use irony mode so I can't really help you. One thing to try is to put both the company-c-headers and company-irony backends into a list before adding to the backends. e.g. (add-to-list 'company-backends (list company-c-headers company-irony))
.
Secondly: Can you read the current include directories out of irony mode? If so you can just create a function to access them, and bind to it, e.g. (setq company-c-headers-path-system 'irony-mode-get-system-headers)
.
I have a little question with compatibility. When I install https://github.com/Sarcasm/company-irony, the completion in company-c-headers stops working. Nonetheless, when I do
M-x company-c-headers
when I'm after#include <
the completion works, but it doesn't work automatically, and the commandM-x company-search-mode
answers meno completions found
. Have you any idea why this is happening? The important file of my init.el file isAnother question. With irony-mode you have a
.clang_complete
file which you can load for completions with the commandirony-cdb-menu
and this shows you the.clang_complete
file in your closes parent directory to load. Is there any way to do also this with company-c-headers? The clang is like this: