Closed PaNDa2code closed 4 months ago
It's not coc-clangd's bug, but clangd couldn't understand your code. You need to setup compile_commands.json
or compile_flags.txt
to make clangd work for your code. https://clangd.llvm.org/installation#project-setup
Hey there,
I've been using Neovim with clangd for C and C++, and I'm encountering an issue with my configuration when working with C++ files that include
windows.h
. While I've set up my configuration fileconfig.yaml
to use MinGW compilers without any problem for C files, it seems like clangd can't findwindows.h
when processing C++ files.These is my old
config.yaml
(was working well with c):Here's my new
config.yaml
:However, when I include
windows.h
in a C++ file and run clangd, it gives me an error saying that the file is not found:Now, I encountered an issue with the new config. It's throwing an error message here:
These is neovim LSP log if it's can help.
Do you think this problem is related to my new config? If so, how can I configure clangd to use Mingw compilers for both C and C++? I've tried adjusting the paths and configurations, but haven't had any luck so far. Any suggestions on how to resolve this would be greatly appreciated.
Thanks!