This script provides YouCompleteMe support via ycmd in Kakoune.
It works for C/C++ with the clang completer, other languages are not tested yet.
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 }