diff --git a/rc/clang.kak b/rc/clang.kak index d2021e56..ce5e109f 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -26,6 +26,12 @@ def clang-complete %{ # position and a buffer timestamp, only valid completions should be # displayed. ( + case ${kak_opt_filetype} in + cpp) ft=c++ ;; + obj-c) ft=objective-c ;; + *) ft=c++ ;; + esac + pos=-:${kak_cursor_line}:${kak_cursor_column} cd $(dirname ${kak_buffile}) header="${kak_cursor_line}.${kak_cursor_column}@${kak_timestamp}"