Skip to content

Instantly share code, notes, and snippets.

@tykurtz
Last active April 1, 2021 05:27
Show Gist options
  • Save tykurtz/d53670e0142b92d49b364af41b45a119 to your computer and use it in GitHub Desktop.
Save tykurtz/d53670e0142b92d49b364af41b45a119 to your computer and use it in GitHub Desktop.
Dev environment setup for spacemacs with c++ dev
  • TODO - Add example test project
  • TODO - Add style and code format in .spacemacs

Install spacemacs

sudo apt install -y emacs tmux git
git clone -b develop https://github.com/syl20bnr/spacemacs ~/.emacs.d
wget -O ~/.spacemacs https://gist.githubusercontent.com/tykurtz/41c6d7b0930b9f8b107265ab895114a4/raw/b5f5fb35f1defc081a1ce2c8ec8a1c2fbaca6c80/.spacemacs

Install ccls (code completion, navigation, etc.)

sudo apt install -y libllvm8 llvm-8-dev libclang-8-dev clang-8 ninja-build
mkdir ~/source_builds
cd ~/source_builds
git clone --depth=1 --recursive https://github.com/MaskRay/ccls
cd ccls

cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release -G Ninja
sudo cmake --build Release --target install

Install dap dependencies

# Nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install -y nodejs

sudo apt install -y lldb

Download dap adapter from here

mkdir -p ~/.extensions
unzip ~/Downloads/webfreak.debug-0.23.1.vsix -d ~/.extensions/webfreak.debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment