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: 3 comments 12 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.
This comment was marked as spam.
This comment was marked as spam.
-
If you want another plugin to override Autocomplete's keybindings, then simply source that plugin after you source Autocomplete. However, I'm not able to say anything about the particular case of |
Beta Was this translation helpful? Give feedback.
If you want another plugin to override Autocomplete's keybindings, then simply source that plugin after you source Autocomplete.
However, I'm not able to say anything about the particular case of
fzf-tab
, because I cannot get that plugin to work at all.