simplify clang-enable-autocomplete, no need for shell
This commit is contained in:
parent
471aeaab9a
commit
5e54705e26
|
@ -29,10 +29,11 @@ def clang-complete %{
|
||||||
}
|
}
|
||||||
|
|
||||||
def clang-enable-autocomplete %{
|
def clang-enable-autocomplete %{
|
||||||
hook window -id clang-autocomplete InsertIdle .* %{ eval -draft %{
|
hook window -id clang-autocomplete InsertIdle .* %{
|
||||||
exec <a-h>
|
exec -draft <space><a-h><a-k>(\.|->|::).$<ret>
|
||||||
%sh{ [[ $kak_selection =~ .*(\.|->|::).$ ]] && echo "exec <a-space>; eval -client $kak_client echo 'completing...'; clang-complete" }
|
echo 'completing...'
|
||||||
}}
|
clang-complete
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def clang-disable-autocomplete %{ rmhooks window clang-autocomplete }
|
def clang-disable-autocomplete %{ rmhooks window clang-autocomplete }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user