From 02adf234b4166aefe399d0eba27ab365b36ec5a5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 23 Jan 2015 19:11:19 +0000 Subject: [PATCH] jedi.kak: use the docstring as completion doc --- rc/jedi.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/jedi.kak b/rc/jedi.kak index bde0049e..ef0f44a7 100644 --- a/rc/jedi.kak +++ b/rc/jedi.kak @@ -18,7 +18,7 @@ def jedi-complete %{ compl=$(python 2> "${dir}/fifo" <<-END import jedi script=jedi.Script(open('$dir/buf', 'r').read(), $kak_cursor_line, $kak_cursor_column - 1, '$kak_buffile') - print ':'.join([str(c.name) + "@" + str(c.description).replace(":", "\\:") for c in script.completions()]) + print ':'.join([str(c.name) + "@" + str(c.docstring()).replace(":", "\\:") for c in script.completions()]) END ) echo "eval -client ${kak_client} %[ echo completed; set 'buffer=${kak_buffile}' jedi_completions %[${header}:${compl}] ]" | kak -p ${kak_session}