zsh: add autosuggestions/completions & vi mode - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 3644b39d5f5ce3abc0ebc128d39ea02ceb2671c8
DIR parent 03a3aac3d948880693b5581a974c8ff77f24e04c
HTML Author: drkhsh <me@drkhsh.at>
Date: Fri, 6 Sep 2024 00:54:31 +0200
zsh: add autosuggestions/completions & vi mode
Diffstat:
M zsh/.config/zsh/00-plugins.zsh | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
---
DIR diff --git a/zsh/.config/zsh/00-plugins.zsh b/zsh/.config/zsh/00-plugins.zsh
@@ -3,14 +3,20 @@ ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME/.git ] && git clone --depth=1 https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
-# git clone depth
-zinit ice depth=1
-
-# zsh-fast-syntax-hightlighting
-zinit light z-shell/F-Sy-H
-
# zsh-banner
export ANSI_MOTD_RATE_LIMIT_OUTPUT="11k"
export ANSI_MOTD_DISABLE_LINE_WRAPPING=1
-zinit light drkhsh/zsh-banner
+zinit ice depth=1; zinit light drkhsh/zsh-banner
+
+# usable vi mode
+zinit ice depth=1; zinit light jeffreytse/zsh-vi-mode
+
+# zsh-fast-syntax-highlighting, autosuggestions & completions
+zinit ice depth=1; zinit wait lucid light-mode for \
+ atinit"zicompinit; zicdreplay" \
+ z-shell/F-Sy-H \
+ atload"_zsh_autosuggest_start" \
+ zsh-users/zsh-autosuggestions \
+ blockf atpull'zinit creinstall -q .' \
+ zsh-users/zsh-completions