Since few day I am trying to force vim-coc (with coc-clangd) to work properly with project. My test project is clonned bluez project.
When I openbluez/src/main.c
with vim (neovim in my case) most of autocompletion and goto definition works but unfortunately some of included headers like #include "lib/bluetooth.h"
cannot be referenced because its location is in bluez/lib/...
.
How can I force vim-coc to treat main bluez directory as master dir for indexer?
Asked
Active
Viewed 1,134 times
2

PatLas
- 179
- 1
- 5
- 16
1 Answers
2
Can you build the project? If you can, run command:bear make
(bear need to be installed).
After you run the command, you will see a file named "compile_commands.json".
Then completion might be able to work.

ccbhj
- 21
- 3