0

My process so far:

  1. Brew unlink vim
  2. Brew install macvim
  3. Brew link macvim
  4. Installing YCM with vim-plug.
  5. Running ./install.py from YCM folder.
  6. mkdir ycm_build
  7. cmake -G "Unix Makefiles" .
  8. ~/.vim/Plugged/YouCompleteMe/third_party/ycmd/cpp
  9. cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp

And that's it, I think. I do realize I probably missed something with this libclang thing, but I understood it's something for C languages and I intend to use Python.

I get only completion 'history', as in the screenshot below.

enter image description here

Where did I go wrong?

  • I couldn't make YCM work for windows box (it is not the simplest plugin to install). I use supertab + vim-lsc instead for python. It was quite straight forward to install. – Maxim Kim Oct 28 '19 at 10:41
  • @MaximKim this is a mac? – D. Ben Knoble Mar 26 at 14:35
  • @D.BenKnoble yeah, probably on mac it would be easier to install. – Maxim Kim Mar 26 at 15:21
0

Not the answer to your question regarding YCM install but for python you can try to use

  1. python language server pip install 'python-language-server[all]'
  2. vim-lsc language server client, pure vimscript, easy to install
  3. supertab (probably you don't need it, but I am not sure how vim-lsc works without it :)

Your vim-lsc setup then should look like:

let g:lsc_auto_map = v:true
let g:lsc_server_commands = { 
            \'python': {
            \    'command': 'pyls',
            \    'log_level': -1,
            \    'suppress_stderr': v:true
            \}
\}

Then with <tab>:

enter image description here

or with K:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.