Skip to content

Commit

Permalink
Load zsh-autocomplete after zsh-autocomplete
Browse files Browse the repository at this point in the history
Resolves this issue on my Ubuntu box.

zsh-users/zsh-syntax-highlighting#951
  • Loading branch information
justin committed Oct 11, 2024
1 parent b0053db commit 0934343
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions files/private_dot_config/zsh/config/05-autocomplete.zsh
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# Source zsh-autocomplete
# https://github.com/marlonrichert/zsh-autocomplete
if [[ -e "$HOME/.cache/zsh/external/zsh-autocomplete/zsh-autocomplete.plugin.zsh" ]]; then
if is_linux; then
export skip_global_compinit=1
fi
source "$HOME/.cache/zsh/external/zsh-autocomplete/zsh-autocomplete.plugin.zsh" || true
fi

# Source zsh-syntax-highlighting extension.
# https://github.com/zsh-users/zsh-syntax-highlighting
if [[ -e "$HOME/.cache/zsh/external/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]]; then
Expand All @@ -18,3 +9,12 @@ fi
if [[ -e "$HOME/.cache/zsh/external/zsh-autosuggestions/zsh-autosuggestions.zsh" ]]; then
source "$HOME/.cache/zsh/external/zsh-autosuggestions/zsh-autosuggestions.zsh" || true
fi

# Source zsh-autocomplete
# https://github.com/marlonrichert/zsh-autocomplete
if [[ -e "$HOME/.cache/zsh/external/zsh-autocomplete/zsh-autocomplete.plugin.zsh" ]]; then
if is_linux; then
export skip_global_compinit=1
fi
source "$HOME/.cache/zsh/external/zsh-autocomplete/zsh-autocomplete.plugin.zsh" || true
fi

0 comments on commit 0934343

Please sign in to comment.