randomphrase / company-c-headers

Auto-completion for C/C++ headers using Company
GNU General Public License v2.0
76 stars 9 forks source link

[Question] Setting user-path based on EDE #10

Closed krzysztof-magosa closed 8 years ago

krzysztof-magosa commented 8 years ago

Hi,

You included example how to set company-c-headers-path-system from EDE. I'm trying do the same but with user-path, so it would complete local project headers. Unfortunately I cannot find name of function/variable in EDE where include-path is stored. Any idea how to achieve that?

Thanks.

randomphrase commented 8 years ago

EDE does not distinguish between user and system paths, instead all headers are searched in what it calls the system include path. Hence you can probably just set the company-c-headers-path-user variable from ede-system-include-path.

krzysztof-magosa commented 8 years ago

Thank you :)