mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
goddamn widget wrappers!
This commit is contained in:
parent
8c97104c79
commit
7f08e8a053
1 changed files with 4 additions and 2 deletions
|
@ -2462,7 +2462,8 @@ _p9k_init() {
|
||||||
autoload -Uz add-zle-hook-widget
|
autoload -Uz add-zle-hook-widget
|
||||||
zle -N _p9k_zle_line_finish
|
zle -N _p9k_zle_line_finish
|
||||||
add-zle-hook-widget line-finish _p9k_zle_line_finish
|
add-zle-hook-widget line-finish _p9k_zle_line_finish
|
||||||
add-zle-hook-widget -D line-finish user:_zsh_highlight_widget_orig-\*-zle-line-finish
|
add-zle-hook-widget -D line-finish user:_zsh_highlight_widget_orig-\*
|
||||||
|
add-zle-hook-widget -D line-finish user:_zsh_autosuggest_bound_\*
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -2524,7 +2525,8 @@ _p9k_init() {
|
||||||
}
|
}
|
||||||
autoload -Uz add-zle-hook-widget
|
autoload -Uz add-zle-hook-widget
|
||||||
add-zle-hook-widget line-pre-redraw _p9k_zle_line_pre_redraw
|
add-zle-hook-widget line-pre-redraw _p9k_zle_line_pre_redraw
|
||||||
add-zle-hook-widget -D line-pre-redraw user:_zsh_highlight_widget_orig-\*-zle-line-pre-redraw
|
add-zle-hook-widget -D line-pre-redraw user:_zsh_highlight_widget_orig-\*
|
||||||
|
add-zle-hook-widget -D line-pre-redraw user:_zsh_autosuggest_bound_\*
|
||||||
_p9k_g_expand POWERLEVEL9K_VI_VISUAL_MODE_STRING
|
_p9k_g_expand POWERLEVEL9K_VI_VISUAL_MODE_STRING
|
||||||
else
|
else
|
||||||
>&2 print -P '%F{yellow}WARNING!%f POWERLEVEL9K_VI_VISUAL_MODE_STRING requires ZSH >= 5.3.'
|
>&2 print -P '%F{yellow}WARNING!%f POWERLEVEL9K_VI_VISUAL_MODE_STRING requires ZSH >= 5.3.'
|
||||||
|
|
Loading…
Reference in a new issue