Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.07 KB

README.asciidoc

File metadata and controls

40 lines (27 loc) · 1.07 KB

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