Install requirements on Debian:
sudo apt install g++ nlohmann-json-dev libclang-5.0-dev
Compile the plugin binary:
cd ncm2-libclang
g++ src/ncm2_libclang.cpp -std=c++11 -I /usr/lib/llvm-5.0/include/ /usr/lib/llvm-5.0/lib/libclang.so -o bin/ncm2_libclang
If you're using vim-plug.
Plug "ncm2/ncm2-libclang", {"do": "g++ src/ncm2_libclang.cpp -std=c++11 -I /usr/lib/llvm-5.0/include/ /usr/lib/llvm-5.0/lib/libclang.so -o bin/ncm2_libclang"}