Clang - mawww/kakoune GitHub Wiki

Make sure clang.kak is in your autoload folder, set the clang_options to the command line options your code needs, and add the following hook to your kakrc:

hook global WinSetOption filetype=(c|cc|cpp|h) %{
  clang-enable-autocomplete; clang-enable-diagnostics
}