compatibility with fzf-tab? #500
-
Hello, thanks for the amazing plugin! Here's my .zshrc config: source $ZSH/custom/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export "PATH=${PATH}:${HOME}/.local/bin"
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_TMUX_AUTOSTART="true"
plugins=(
alias-tips
extract
fd
git
ripgrep
thefuck
tmux
# web search
zsh-autopair
zsh-autocomplete
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
# load this last to make the ** keybind work
fzf
# fzf-tab
)
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/site-functions/fzf
zstyle ':autocomplete:tab:*' fzf-completion yes
zstyle ':autocomplete:*' min-input 1
# my-fzf-tab() {
# functions[compadd]=$functions[-ftb-compadd]
# zle fzf-tab-complete
# }
# zle -N fzf-tab-complete
# bindkey "^I" fzf-tab-complete
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# import custom aliases and function
[ -f $HOME/.zsh_aliasrc ] && source $HOME/.zsh_aliasrc
[ -f $HOME/.profile ] && source $HOME/.profile
pokemon-colorscripts -r --no-title; tput setaf 4 && tput bold; fortune
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet Uncommenting this And also the author of the fzf-tab suggest in this thread to either choose which one of plugins to use, Though It's nice to use both of the plugins. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I'm curious: How would you even expect this to work in practice, from the user's point of view? |
Beta Was this translation helpful? Give feedback.
zstyle ':autocomplete:tab:*' fzf-completion yes
lets you use Zsh Autocomplete with Fzf's official shell extensions. It does not provide compatibility with Fzf Tab.I'm curious: How would you even expect this to work in practice, from the user's point of view?