# YouCompleteMe ## Install https://github.com/ycm-core/YouCompleteMe#macos ### Install dependencies With [[Homebrew]]: ```bash brew install cmake python mono go nodejs ``` ### Use with [[vim-plug]] `Plug 'ycm-core/YouCompleteMe'` ### Install `pynvim` if needed The `pynvim` module is needed for Python plugins. To see if you already have the `pynvim` module installed (some package managers install the module with Nvim itself), run the following: ```vim :checkhealth ``` - For more information, see `:help provider-python` If `pynvim` is missing, it can be installed like so: ```bash # See that python3 is available in path python3 # Install the module # "The pip `--upgrade` flag ensures that you get the # latest version even if a previous version was # already installed." python3 -m pip install --user --upgrade pynvim ``` ### Compile [[YouCompleteMe]] ```bash cd ~/.config/nvim/plugged/YouCompleteMe python3 install.py --all ``` ## Debugging ### `YouCompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support.` at start ```bash python3 -m pip install --user --upgrade pynvim ``` See [this Stack Overflow answer](https://stackoverflow.com/a/61831305) for details.