From df38d1539bf1acd1b54e70bb3a35624acd80f251 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 27 Jun 2016 20:55:49 +0100 Subject: [PATCH] Change ctags autoinfo to run on {Normal,Insert}Idle --- rc/base/ctags.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/base/ctags.kak b/rc/base/ctags.kak index 11ebe082..58995a9e 100644 --- a/rc/base/ctags.kak +++ b/rc/base/ctags.kak @@ -40,7 +40,7 @@ def tag-complete -docstring "Insert completion candidates for the current select def ctags-funcinfo -docstring "Display ctags information about a selected function" %{ eval -draft %{ try %{ - exec '[(;B[a-zA-Z_]+\(' + exec -no-hooks '[(;B[a-zA-Z_]+\(' %sh{ sigs=$(readtags -e ${kak_selection%(} | grep kind:f | sed -re 's/^(\S+).*((class|struct|namespace):(\S+))?.*signature:(.*)$/\5 [\4::\1]/') if [ -n "$sigs" ]; then @@ -52,8 +52,8 @@ def ctags-funcinfo -docstring "Display ctags information about a selected functi } def ctags-enable-autoinfo -docstring "Automatically display ctags information about function" %{ - hook window -group ctags-autoinfo NormalKey .* ctags-funcinfo - hook window -group ctags-autoinfo InsertKey .* ctags-funcinfo + hook window -group ctags-autoinfo NormalIdle .* ctags-funcinfo + hook window -group ctags-autoinfo InsertIdle .* ctags-funcinfo } def ctags-disable-autoinfo -docstring "Disable automatic ctags information displaying" %{ rmhooks window ctags-autoinfo }