-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi!
I am in the process of switching my Zsh setup from zinnit to antidote and want to use ez-compinit to manage my completions. I am not sure if this is a antidote or ez-compinit issue. Please let me know if this issue belongs somewhere else.
Here are my configuration files which is still a work in progress.
~/.config/zsh/.zshenv
# Make Zsh respect XDG directories.
export ZDOTDIR=${ZDOTDIR:-$HOME/.config/zsh}
# Set XDG base directories.
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
export XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
export XDG_STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
# XDG base directories not in specification.
export XDG_BIN_HOME=${XDG_BIN_HOME:-$HOME/.local/bin}
# Fish-like directories.
: ${__zsh_config_dir:=${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}}
: ${__zsh_user_data_dir:=${XDG_DATA_HOME:-$HOME/.local/share}/zsh}
: ${__zsh_cache_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/zsh}
# Ensure XDG/Zsh directories exist.
() {
local dir
for dir in "$@"; do
[[ -d "${(P)dir}" ]] || mkdir -p -- "${(P)dir}"
done
} __zsh_{config,user_data,cache}_dir XDG_{CONFIG,CACHE,DATA,STATE,BIN}_HOME
~/.config/zsh/.zshrc
#
# Antidote: Zsh plugin manager.
#
export ANTIDOTE_REPO=${XDG_DATA_HOME:-$HOME/.local/share}/antidote
[[ -d $ANTIDOTE_REPO ]] \
|| git clone --depth 1 https://github.com/mattmc3/antidote $ANTIDOTE_REPO
bundle_file=${ZDOTDIR:-$HOME/.config/zsh}/zsh_plugins
static_file=${XDG_DATA_HOME:-$HOME/.local/share}/zsh/zsh_plugins.zsh
[[ -f $bundle_file ]] || touch $bundle_file
# Source Antidote.
source $ANTIDOTE_REPO/antidote.zsh
# Use friendly names with the bundle directory in $ANTIDOTE_HOME.
zstyle ':antidote:bundle' use-friendly-names on
# Set custom bundle file. Default: ${ZDOTDIR:-$HOME}/.zsh_plugins
zstyle ':antidote:bundle' file $bundle_file
# Set custom static file. Default: ${ZDOTDIR:-$HOME}/.zsh_plugins.zsh
zstyle ':antidote:static' file $static_file
# Zsh compile everything, static file and all bundles.
zstyle ':antidote:*' zcompile yes
#
# Completions: Set completion options.
#
zstyle ':plugin:ez-compinit' 'compstyle' 'zshzoo'
#
# Plugin settings: Set options for various plugins.
#
export FZF_PATH=${XDG_DATA_HOME:-$HOME/.local/share}/fzf
#
# Wrap-up
#
# Initialize plugins statically with ${ZDOTDIR:-$HOME/.config/zsh}/zsh_plugins file.
# Note: Must be loaded after setting zstyles.
antidote load
~/.config/zsh/zsh_plugins
#
# Completions
#
mattmc3/ez-compinit
zsh-users/zsh-completions kind:fpath path:src
#
# Utilities
#
mattmc3/zephyr path:plugins/color
mattmc3/zephyr path:plugins/directory
mattmc3/zephyr path:plugins/history
ohmyzsh/ohmyzsh path:plugins/command-not-found
ohmyzsh/ohmyzsh path:plugins/extract
#
# FZF
#
unixorn/fzf-zsh-plugin
Aloxaf/fzf-tab
#
# Fish-like plugins
#
mattmc3/zephyr path:plugins/zfunctions
mattmc3/zephyr path:plugins/confd
zdharma-continuum/fast-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
The issue is that no matter what I do the ~/.config/zsh/.zcompdump file is always created and before ez-compinit creates ~/.cache/zsh/zcompdump. Basically I end up with two zcompdump files in different locations and which one is Zsh actually using?
Isn't ez-compinit supposed to manage my zcompdump file and set it to a static location? Any suggestions what I am doing wrong would be very appreciated. Or am I using ez-compinit incorrectly?
Many thanks and keep up the good work! 😄