Use a 'complete' alias for file type specific completer
This commit is contained in:
parent
eb57d0a1d9
commit
bec0ff0fa0
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user