# Use your plugin system here

return 1 # <--- Comment this line to disable HyDE's oh-my-zsh plugins and use the zinit examples below

#! This file will not load, remove the return 1 line above to enable this file.
#? Below is an example of how to set up Zsh plugins using Zinit

# ================================================================

# Zinit plugin manager setup
# This section ensures zinit is installed and sourced, which allows you to manage plugins efficiently.
# Zinit is fast, flexible, and supports loading plugins, snippets, and more from GitHub and other sources.

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"
source "${ZINIT_HOME}/zinit.zsh"

# Custom prompt
# Loads your custom prompt configuration. Place this after plugins so it can use their features.
zinit snippet $ZDOTDIR/prompt.zsh

# Plugin: history-search-multi-word
# Allows searching your command history by multiple words, making it easier to find previous commands.
zinit load zdharma-continuum/history-search-multi-word

# Plugin: zsh-autosuggestions
# Suggests commands as you type based on your history and completions, improving efficiency.
zinit light zsh-users/zsh-autosuggestions

# Plugin: fast-syntax-highlighting
# Provides fast syntax highlighting for your Zsh command line, making it easier to spot errors.
zinit light zdharma-continuum/fast-syntax-highlighting

# Snippet: Useful Zsh functions
# Loads a collection of handy Zsh functions from a Gist.
zinit snippet https://gist.githubusercontent.com/hightemp/5071909/raw/

# Plugin: z (rupa/z)
# Enables quick directory jumping based on your usage history.
# just like zoxide, but for zsh
zinit light rupa/z

# Plugin: zsh-completions
# Adds many extra tab completions for Zsh, improving command-line productivity.
zinit light zsh-users/zsh-completions

# Plugin: zsh-history-substring-search
# Lets you search your history for commands containing a substring, similar to Oh My Zsh.
zinit light zsh-users/zsh-history-substring-search

# Snippet: Oh My Zsh git plugin
# Loads useful git aliases and functions from Oh My Zsh's git plugin.
zinit snippet https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh

# Plugin: zsh-autopair
# Automatically inserts matching brackets, quotes, etc., as you type.
zinit light hlissner/zsh-autopair

# Plugin: fzf-tab
# Enhances tab completion with fzf-powered fuzzy search and a better UI.
zinit light Aloxaf/fzf-tab

# Plugin: alias-tips
# Shows tips for using defined aliases when you type commands, helping you learn and use your aliases.
zinit light djui/alias-tips
