Below are the instructions for installing YouCompleteMe on Mac OS X
brew install cmake
cd ~/.vim/bundle
git clone https://github.com/Valloric/YouCompleteMe.git
mkdir YouCompleteMe/ycmbuild
cd YouCompleteMe/ycmbuild
cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/cpp/
make ycm_core
- Restart Vim
- Enjoy
This is not working on Mac M1 11.6 (also with tabnine/YouCompleteMe). Finally below command worked.
python3 install.py --cmake-path=/opt/homebrew/bin/cmake --system-libclang --all