Closed Qix- closed 5 years ago
Ping @roxma - any idea? This is really a bummer as it works perfectly otherwise :/
Here's a demonstration. I've made sure the build commands are correct. They seem to be, as macros from CMake seem to be detected with no problem.
If I use an include that relies on the -I
paths, it doesn't show any symbols - but including from a relative/absolute path does.
Nevermind, made a patch. PR incoming :)
Could you show me a hello-world case so that I could understand what your pr is trying to achieve?
:+1: good catch, that makes a lot of sense ;)
Running nvim in the same directory as my
CMakeLists.txt
file (shown in the firstls
above), I can#include
a relative/absolute path to the header in question and get valid suggestions - however, relying on the include path set byinclude_directories()
in CMake (emitting-I ../path/to/lib
options incompile_commands.json
, which I've verified exist) does not.Either
compile_commands.json
is being ignored entirely, or for some reason this plugin isn't honoring-I
.