diff options
Diffstat (limited to 'lib/completion.zsh')
-rw-r--r-- | lib/completion.zsh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh index 43927a277..2b62785d5 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -60,16 +60,15 @@ zstyle '*' single-ignored show if [[ $COMPLETION_WAITING_DOTS = true ]]; then expand-or-complete-with-dots() { - # toggle line-wrapping off and back on again - [[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti rmam - print -Pn "%{%F{red}......%f%}" - [[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti smam - + print -Pn "%F{red}…%f" zle expand-or-complete zle redisplay } zle -N expand-or-complete-with-dots - bindkey "^I" expand-or-complete-with-dots + # Set the function as the default tab completion widget + bindkey -M emacs "^I" expand-or-complete-with-dots + bindkey -M viins "^I" expand-or-complete-with-dots + bindkey -M vicmd "^I" expand-or-complete-with-dots fi # automatically load bash completion functions |