woo2 / kak-ycmd

YouCompleteMe support script for Kakoune

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kakoune YouCompleteMe Script

This script provides YouCompleteMe support via ycmd in Kakoune.

It works for C/C++ with the clang completer, other languages are not tested yet.

Usage

To use that script, link to it in ~/.config/kak/autoload, and set options in your kakrc:

  • ycmd_path: path of the ycmd python directory, on a cloned ycmd repo, that would be $REPO/ycmd

  • ycmd_port: (defaulting to 12345) port to use for ycmd.

The cpp part of ycmd must be compiled manually, with clang support.

Ycmd completion can be enabled with ycmd-enable-autocomplete command.

To automate its activation, use a hook:

hook global WinSetOption filetype=cpp %{ ycmd-enable-autocomplete }
hook global WinSetOption filetype=(?!cpp).* %{ ycmd-disable-autocomplete }

Dependencies

  • jq for json parsing

  • OpenSSL for HMAC validation

  • base64 for key encoding.

  • curl for http access

About

YouCompleteMe support script for Kakoune