Background Index Location

Greeting everyone, I've started using Clangd for code completion
recently, and I'm liking it a lot so far in terms of LSP features.
However there are some usability features, one of which is that the
background index is being put in the root of my project. This is
inconvenient and I was wondering if it is possible to change the
location of the index directory. I've looked through available options
and did not find anything, If you could help me out, that would be

Nikita Alekseev

Hi Nikita,

I don’t think we have an option for that. It seems like we should work something out here, I filed
As a workaround, if you make $PROJECT/.clangd a symlink to some other directory, clangd will store the index files in that directory. (Tested on linux, I’d expect this to work on mac, not sure about windows).

Cheers, Sam