ctags.kak: tweak auto info
This commit is contained in:
parent
c9b113fd5f
commit
45367bf447
|
@ -30,7 +30,7 @@ def funcinfo %{
|
||||||
exec [(<space>B;
|
exec [(<space>B;
|
||||||
%sh{
|
%sh{
|
||||||
if [[ "$kak_selection" =~ [a-zA-Z_]+\( ]]; then
|
if [[ "$kak_selection" =~ [a-zA-Z_]+\( ]]; then
|
||||||
sigs=$(readtags -e ${kak_selection%(} | grep kind:function | sed -e s/^.*signature://)
|
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 "info -anchor right '$sigs'"
|
||||||
exit
|
exit
|
||||||
|
@ -43,5 +43,6 @@ def funcinfo %{
|
||||||
|
|
||||||
hook global WinSetOption filetype=cpp %{
|
hook global WinSetOption filetype=cpp %{
|
||||||
hook window NormalIdle .* funcinfo
|
hook window NormalIdle .* funcinfo
|
||||||
|
hook window NormalEnd .* info
|
||||||
hook window InsertIdle .* funcinfo
|
hook window InsertIdle .* funcinfo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user