So I am trying to get into the header-only-lib game and I wonder how to deal with the fact that neovim grays out all my implementation code? I temporarily do a #define MY_COOL_LIB_IMPLEMENTATION so that I get nice colors. But I have to comment/uncomment on any change-compile. Obviously not ideal. Any suggestions?
@pythno Assuming you use nvim's LSP integration with clangd, you can drop a file `.clangd` in your root folder with additional compile definitions it uses when analyzing your code.
The syntax can look pretty arcane at times, but its documented at https://clangd.llvm.org/config#compileflags.