Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几天以来,我试图强制vim-coc(使用coc-clangd)与项目正常工作。我的测试项目是克隆的 bluez 项目。当我bluez/src/main.c使用 vim(在我的情况下为neovim)打开时,大多数自动完成和 goto 定义都有效,但不幸的是,某些包含的标头#include "lib/bluetooth.h"无法引用,因为它的位置位于bluez/lib/.... 如何强制 vim-coc 将主 bluez 目录视为索引器的主目录?
bluez/src/main.c
#include "lib/bluetooth.h"
bluez/lib/...
你能建项目吗?如果可以,运行命令:(bear make需要安装熊)。运行命令后,您将看到一个名为“compile_commands.json”的文件。然后完成也许可以工作。
bear make