From 62670c583c6b4e828a6b6075d8a580dcd83f0249 Mon Sep 17 00:00:00 2001 From: Andrei Astafev Date: Thu, 6 Feb 2025 09:56:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D0=B8=D0=B8=20fzf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 45-plugins.zsh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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