Use a 'complete' alias for file type specific completer

This commit is contained in:
Maxime Coste 2014-11-18 13:55:52 +00:00
parent eb57d0a1d9
commit bec0ff0fa0
2 changed files with 4 additions and 0 deletions

View File

@ -63,9 +63,11 @@ def clang-enable-autocomplete %{
echo 'completing...'
clang-complete
} }
alias window complete clang-complete
}
def clang-disable-autocomplete %{
set window completers %sh{ echo "'${kak_opt_completers}'" | sed -e 's/option=clang_completions://g' }
rmhooks window clang-autocomplete
unalias window complete clang-complete
}

View File

@ -40,9 +40,11 @@ def jedi-enable-autocomplete %{
echo 'completing...'
jedi-complete
} }
alias window complete jedi-complete
}
def jedi-disable-autocomplete %{
set window completers %sh{ echo "'${kak_opt_completers}'" | sed -e 's/option=jedi_completions://g' }
rmhooks window jedi-autocomplete
unalias window complete jedi-complete
}