It looks like my .clangd file was massively overcomplicated. It seems to work with just this...
CompileFlags: CompilationDatabase: build