#!/bin/bash
rm compile_commands.json
rm -rf cmake-build-debug/
rm -rf build/
rm -rf compile_commands.json

mkdir cmake-build-debug/
cd cmake-build-debug
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ../
cp compile_commands.json ../compile_commands.json
cd ..

clear
nvim
