Skip to content
Iury O. G. Figueiredo edited this page Dec 30, 2019 · 3 revisions

Vy implements auto completion through Ycmd, it is possible to get auto completion support for all languages that Ycmd supports.

Install

For installing ycmd you can follow the steps on:

https://github.com/ycm-core/ycmd

You can also install youcoompleteme vim plugin it would ship Ycmd together.

Once Ycmd is installed it is time to set up the vy plugin. For such just find the lines in your ~/.vy/vyrc file.

Auto completion using ycmd.

from vyapp.plugins.ycmd import client

client.YcmdCompletion.setup('/path/to/ycmd-code/')

autoload(client)

Then umcomment and set up your Ycmd package path.

Settings

Some projects may demand extra conf. The vy ycmd plugin allows you to generate a file where you define extra options for ycmd to work.

The command:

Command: lycm(path=None) Description: Create a .ycm_extra_conf.py in the specified folder path. When path is not specified it creates in the user home dir.

Would do the job for you. The extra conf file can be created per project but you can use a default one in your home dir.

For knowing more about extra conf for Ycmd just check the project page. You would also find documentation in some vim forums.

Note:

When you're getting unexpected results with ycmd then you can ask it for debugging results:

Command: dycm() Description: Ask ycmd to print debug information. It is mostly useful when setting up config for some completion engines.

Would print the debug info on sys.stdout so you can read the info by pressing:

<Alt-q)>

In GLOBAL mode.

Usage

Just hit:

<Control-period>

In INSERT mode, it would be enough to popup a window with the possible completions for the word under the cursor.

Clone this wiki locally