Kevin Heinicke 2 недель назад
Родитель
Сommit
2369d0d0e3
2 измененных файлов с 8 добавлено и 7 удалено
  1. 1 1
      sheldon-plugins.toml
  2. 7 6
      zshrc

+ 1 - 1
sheldon-plugins.toml

@@ -21,7 +21,7 @@ apply = ["source"]
 # defer = { value = 'zsh-defer source "{{ file }}"', each = true }
 
 [plugins.compinit]
-inline = 'autoload -Uz compinit && zsh-defer compinit && compinit'
+inline = 'autoload -Uz compinit && compinit'
 
 [plugins.p10k]
 github = "romkatv/powerlevel10k"

+ 7 - 6
zshrc

@@ -67,14 +67,20 @@ if which brew > /dev/null; then
   fpath=($(brew --prefix)/share/zsh/site-functions $fpath)
 fi
 
+zmodload zsh/complist
+
 # zplug load
 if which sheldon > /dev/null; then
   eval "$(sheldon source)"
 fi
 
-zmodload zsh/complist
 zstyle ':completion:*' menu select
 
+[[ ! -f ~/.zsh_local_completions ]] || source ~/.zsh_local_completions
+
+# Better cp -- must go after compinit and stuff
+eval "$(zoxide init zsh)"
+
 # vi mode
 bindkey -v
 export KEYTIMEOUT=1
@@ -86,11 +92,6 @@ bindkey -M menuselect 'l' vi-forward-char
 bindkey -M menuselect 'j' vi-down-line-or-history
 bindkey -v '^?' backward-delete-char
 
-[[ ! -f ~/.zsh_local_completions ]] || source ~/.zsh_local_completions
-
-# Better cp -- must go after compinit and stuff
-eval "$(zoxide init zsh)"
-
 # Store if light or dark mode is active
 if [[ $(defaults read -g AppleInterfaceStyle 2&> /dev/null) == "Dark" ]]
 then