#######################################
#
# Place the following code at the top
#
#######################################

# Load git plugin (required for git_prompt_info)
plugins=(git)

# Git prompt customization (must come BEFORE source)
ZSH_THEME_GIT_PROMPT_PREFIX=" ("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="*"

# Prompt format

autoload -Uz colors && colors
precmd() {
  CONDA_PROMPT_MODIFIER="%F{#C07AC8}($CONDA_DEFAULT_ENV)%f "
}
PROMPT='${CONDA_PROMPT_MODIFIER}%F{green}%m%f:%F{blue}%~%f %F{red}$(git_prompt_info)%f: '

# Load Oh My Zsh after everything is configured
source $ZSH/oh-my-zsh.sh

#######################################
#
# Any other configs place in the middle
#
#######################################

# zsh-syntax-highlighting - Forest Phosphor colors
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# Commands, builtins, aliases, functions — all callable, all yellow.
# Builtins keep amber to mark them as structural (shell-internal control).
ZSH_HIGHLIGHT_STYLES[command]='fg=#D1CF32,nounderline'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=#E8A030,nounderline'
ZSH_HIGHLIGHT_STYLES[alias]='fg=#D1CF32,nounderline'
ZSH_HIGHLIGHT_STYLES[function]='fg=#D1CF32,nounderline'

# Strings - string green
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#73e165'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#73e165'

# Flags / options — blue (attributes on a command, not callable)
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#77B0FF'
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#77B0FF'

# Paths — cyan (data / variable role)
ZSH_HIGHLIGHT_STYLES[path]='fg=#7AF8FF'

# Unknown / error commands — coral attention signal
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#EA9575,nounderline'
