Vim YouCompleteMe Java setup

711 Views Asked by At

I'm trying to set up Java autocompletion for Vim using the YouCompleteMe plugin. I ran the install script and got the following message saying that I need to set an option called java_binary_path:

$ python3 install.py --java-completer --clang-completer
Generating ycmd build configuration...OK
Compiling ycmd target: ycm_core...OK
Building regex module...OK
Building watchdog module...OK
Installing jdt.ls for Java support...

*** WARNING ***: jdt.ls requires Java 17. You must set the option java_binary_path to point to a working java 17.


OK

I tried setting this in my ~/.vimrc file as follows, but now I'm getting the error E518: Unknown option: java_binary_path=/usr/local/opt/openjdk@17/bin/java:

set java_binary_path=/usr/local/opt/openjdk@17/bin/java

Does anyone know how to set this option?

0

There are 0 best solutions below