Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目使用meson编译构建C代码,该如何启用代码补全呢 #47

Open
zevorn opened this issue Oct 28, 2024 · 1 comment
Open

Comments

@zevorn
Copy link

zevorn commented Oct 28, 2024

小彭老师好~

最近我在使用您的 nvim 配置,阅读 QEMU 代码,不过现在qemu 使用 meson 构建代码,好像不能像 readme 给出的 cmake 那样配置 nvim 的项目代码补全。

您知道有什么方法,或者插件,来支持 meson 构建的C/C++项目嘛

@archibate
Copy link
Owner

无论什么构建系统,只要能生成build/compile_commands.json,就能智能补全。
cmake是通过-DCMAKE_EXPORT_COMPILE_COMMANDS=ON就能生成这个文件。
我没用过meson,请自行查阅meson文档或询问gpt。
如果他们没有支持,那就不能支持meson智能补全,或者你只能手动书写compile_commands.json。
相关issue:mesonbuild/meson#3545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants