mirror of
https://github.com/rydesun/dotfiles.git
synced 2026-01-07 14:27:25 +08:00
Update zsh: plugins
This commit is contained in:
parent
ad7bd31f02
commit
0fe92542a0
1 changed files with 7 additions and 4 deletions
|
|
@ -37,14 +37,19 @@ ZINIT[BIN_DIR]=${_ZSH_PLUG_DIR}/bin
|
|||
ZINIT[ZCOMPDUMP_PATH]=${_ZSH_CACHE_DIR}/zcompdump-${ZSH_VERSION}
|
||||
source ${ZINIT[BIN_DIR]}/zinit.zsh
|
||||
|
||||
zinit ice lucid wait
|
||||
zinit light zdharma/fast-syntax-highlighting # 语法高亮
|
||||
zinit ice lucid wait atload='_zsh_autosuggest_start'
|
||||
zinit light zsh-users/zsh-autosuggestions # 提示历史命令
|
||||
zinit ice lucid wait
|
||||
zinit light hlissner/zsh-autopair # 闭合成对符号
|
||||
zinit light zsh-users/zsh-completions # 更多命令补全
|
||||
zinit ice lucid wait
|
||||
zinit light skywind3000/z.lua # 快速跳转目录
|
||||
|
||||
# git扩展
|
||||
zinit ice lucid wait'1' as"program" pick"$ZPFX/bin/git-*" \
|
||||
src"etc/git-extras-completion.zsh" make"PREFIX=$ZPFX"
|
||||
zinit light tj/git-extras
|
||||
|
||||
# 主题
|
||||
autoload -Uz colors && colors
|
||||
source ${ZDOTDIR}/theme
|
||||
|
|
@ -68,8 +73,6 @@ export _ZL_MATCH_MODE=1
|
|||
# <<< zsh-autosuggestions (var)
|
||||
# 建议策略: history, completion, match_prev_cmd
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
# 开启异步模式
|
||||
ZSH_AUTOSUGGEST_USE_ASYNC=1
|
||||
# >>>-----------------------------------
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue