Cursen TUI Framework
Go to file
Curt Spark aba50e7300 Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00
.gitignore Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00
CMakeLists.txt Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00
README.org Init 2025-11-19 01:46:34 +00:00
compile_commands.json Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00
default.nix Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00
main.cpp Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00
run.sh Switch to cmake and cc-ls 2025-11-20 01:29:00 +00:00

README.org

NixOS C++ Dev Template

Having issues getting clangd to detect std header files despite clang++ and g++ having no issues. So this template/workaround solves this.

I assume this is due to some wrapper script nonsense.

As a workaround I use bear to generate the necessary paths/arguments to get clangd to pick these up.

bear -- clang++ main.cpp

In the generated compile_commands.json. There is a command for generating the main project but also a temporary object file.

I assume this is more weird wrapper stuff (Bear does not support nixos clang wrappers)

You need to move the cxx_isystem related flags as these are where the c++ stdlibs are kept. Also just rename them to isystem otherwise they dont work for whatever reason.