Fix ctags.kak function info support
This commit is contained in:
parent
17951bf077
commit
bc3cfb9016
|
@ -32,7 +32,7 @@ def funcinfo %{
|
||||||
if [[ "$kak_selection" =~ [a-zA-Z_]+\( ]]; then
|
if [[ "$kak_selection" =~ [a-zA-Z_]+\( ]]; then
|
||||||
sigs=$(readtags -e ${kak_selection%(} | grep kind:f | sed -re 's/^(\S+).*(class|struct|namespace):(\S+).*signature:(.*)$/\4 [\3::\1]/')
|
sigs=$(readtags -e ${kak_selection%(} | grep kind:f | sed -re 's/^(\S+).*(class|struct|namespace):(\S+).*signature:(.*)$/\4 [\3::\1]/')
|
||||||
if [[ -n "$sigs" ]]; then
|
if [[ -n "$sigs" ]]; then
|
||||||
echo "info -anchor right '$sigs'"
|
echo "eval -client ${kak_client} %{info -anchor right '$sigs'}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -44,6 +44,7 @@ def funcinfo %{
|
||||||
def ctags-enable-autoinfo %{
|
def ctags-enable-autoinfo %{
|
||||||
hook window -id ctags-autoinfo NormalIdle .* funcinfo
|
hook window -id ctags-autoinfo NormalIdle .* funcinfo
|
||||||
hook window -id ctags-autoinfo NormalEnd .* info
|
hook window -id ctags-autoinfo NormalEnd .* info
|
||||||
|
hook window -id ctags-autoinfo NormalKey .* info
|
||||||
hook window -id ctags-autoinfo InsertIdle .* funcinfo
|
hook window -id ctags-autoinfo InsertIdle .* funcinfo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user