-
Notifications
You must be signed in to change notification settings - Fork 54
Ycmd Completion
Vy implements auto completion through Ycmd, it is possible to get auto completion support for all languages that Ycmd supports.
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.
Then umcomment and set up your Ycmd package path.
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.
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.