diff --git a/45-plugins.zsh b/45-plugins.zsh index 75ea7d9..d023915 100644 --- a/45-plugins.zsh +++ b/45-plugins.zsh @@ -56,10 +56,14 @@ if command -v fzf > /dev/null 2>&1; then FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" FZF_ALT_C_COMMAND="fd --type d" fi - if is-at-least "0.34" "$(fzf --version | awk '{ print $1; }')"; then - zinit ice lucid wait'0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion" - zinit snippet https://github.com/junegunn/fzf/blob/master/shell/completion.zsh - zinit snippet https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh + FZF_VERSION="$(fzf --version | awk '{ print $1; }')" + zinit ice lucid wait'0' mv"completion.zsh -> _fzf" pick"_fzf" as"completion" + if is-at-least "0.54" "$FZF_VERSION"; then + zinit snippet "https://raw.githubusercontent.com/junegunn/fzf/refs/tags/v${FZF_VERSION}.0/shell/completion.zsh" + zinit snippet "https://raw.githubusercontent.com/junegunn/fzf/refs/tags/v${FZF_VERSION}.0/shell/key-bindings.zsh" + else + zinit snippet "https://github.com/junegunn/fzf/blob/${FZF_VERSION}.0/shell/completion.zsh" + zinit snippet "https://github.com/junegunn/fzf/blob/${FZF_VERSION}.0/shell/completion.zsh" fi fi