aboutsummaryrefslogtreecommitdiff
path: root/.zinitrc
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-15 22:55:09 +0800
committerGuangxiong Lin <[email protected]>2023-11-15 22:55:09 +0800
commit7de27509734330495fc54235283047c2e74ee8b3 (patch)
tree1f3a16af4e465c872172eea489e5491392d6dc8e /.zinitrc
parentdc7e5a5f94cc89c57c4ff7f20f90a55a1a0e6ec4 (diff)
downloaddotfiles-7de27509734330495fc54235283047c2e74ee8b3.tar.gz
dotfiles-7de27509734330495fc54235283047c2e74ee8b3.tar.bz2
dotfiles-7de27509734330495fc54235283047c2e74ee8b3.zip
Refactor
Diffstat (limited to '.zinitrc')
-rw-r--r--.zinitrc14
1 files changed, 8 insertions, 6 deletions
diff --git a/.zinitrc b/.zinitrc
index b853289..217855a 100644
--- a/.zinitrc
+++ b/.zinitrc
@@ -1,15 +1,17 @@
#!/usr/bin/env zsh
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
-[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
-[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
+[ ! -d $ZINIT_HOME ] &&
+ mkdir -p "$(dirname $ZINIT_HOME)"
+[ ! -d $ZINIT_HOME/.git ] &&
+ git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
-autoload -Uz _zinit
-(( ${+_comps} )) && _comps[zinit]=_zinit
-
-zinit wait lucid atload'_zsh_autosuggest_start' light-mode for zsh-users/zsh-autosuggestions
+zinit wait lucid atload'_zsh_autosuggest_start' \
+ light-mode for \
+ zsh-users/zsh-autosuggestions
+ZSH_AUTOSUGGEST_STRATEGY=(history completion)
zinit wait lucid light-mode for \
zsh-users/zsh-syntax-highlighting \
zsh-users/zsh-completions