mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-30 23:37:17 +03:00
clang: fix auto completion when cursor is on end of line
This commit is contained in:
parent
17b2d8c052
commit
0ca23f9ebd
@ -31,7 +31,7 @@ def clang-complete %{
|
||||
|
||||
def clang-enable-autocomplete %{
|
||||
hook window InsertIdle .* %{ eval -restore-selections %{
|
||||
exec h<a-h>
|
||||
%sh{ [[ $kak_selection =~ .*(\.|->|::)$ ]] && echo "exec <a-space>l; echo 'completing...'; clang-complete" }
|
||||
exec <a-h>
|
||||
%sh{ [[ $kak_selection =~ .*(\.|->|::).$ ]] && echo "exec <a-space>; echo 'completing...'; clang-complete" }
|
||||
}}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user