I use clangd while working on neovim. The compile-commands generated on other distributions work fine, but I’m getting missing library issues on nix. Has anyone solved this issue?
Unfortunately that didn’t seem to do it, still getting
6 Diagnostics:
7 1. 'assert.h' file not found with <angled> include; use "quotes" instead (fix available)
8 2. In included file: 'auto/config.h' file not found
# C++
# Clangd from clang-tools must come first.
(hiPrio clang-tools.override {
llvmPackages = llvmPackages_16;
enableLibcxx = false;
})
# Do not use the clangd from this package as it does not work correctly with
# stdlib headers.
llvmPackages_16.libstdcxxClang