Compile_commands.json is generated using cmake, so that the nvim lsp will recognize the sdl2 header files.
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
- Navigate to build directory
- Create a directory SDL2_ttf, reference
CMakeLists.txt - Run
cmake ../../vendored/SDL_ttf - Run
make - Optionallym Run
make installto install globally