but for the C functions imported in BridgingHeader.h, like led_driver_set_brightness() or led_driver_set_saturation(). Per Using SourceKit-LSP with Embedded Projects I've attempted to specify -import-bridging-header to the LSP like so, but I couldn't get it working.
Not sure if that matters, but I am able to successfully compile and upload the blink example to my ESP32C6. As far as I remember, in Xcode the autocomplete does suggest things imported through bridging header, so my guess is that it should be possible. Any help would be greatly appraciated.
I asked a similar question here elsewhere in regards to another project that had a similar structure, albeit it uses makefiles instead of cmake.
TL:DR it appears that what we were trying was for SwiftPM project, which we are not using.
In your case, you appear to be using CMAKE, so you can seemingly, in fact, achieve autocomplete using CMAKE_EXPORT_COMPILE_COMMANDS to create the compilation database.
For those using makefiles, you apparently need to craft the compilation database json yourself.