From 75b7f44cf1c94c34ae0d64026695862fdeca691f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 21 Nov 2014 13:27:43 +0000 Subject: [PATCH] Add kakoune filetype -> clang filetype conversion in clang-complete --- rc/clang.kak | 6 ++++++ 1 file changed, 6 insertions(+) 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}"