feat: setup justfile to generate files required by clangd in nvim

This commit is contained in:
Sara Gerretsen 2025-09-04 11:07:30 +02:00
parent 3825c0e0bb
commit a895e34ce7
3 changed files with 7 additions and 1 deletions

5
.clangd Normal file
View file

@ -0,0 +1,5 @@
CompileFlags:
Add:
- "-Ibuild/_deps/sfml-src/include/"
- "-Ibuild/_deps/imgui-src/"
- "-Ibuild/_deps/imgui-sfml-src/"

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ bin/
*.kdev4
# Ignore run artefacts
imgui.ini
compile_commands.json

View file

@ -5,7 +5,7 @@ set-project-name projectname:
rm -rf build bin
generate:
cmake -S. -Bbuild
cmake -S. -Bbuild -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
rebuild:
cmake --build build