mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-25 20:47:45 +01:00
zsh: removed faulty completion addon and added fuzzy completion
This commit is contained in:
parent
3a8523c9c7
commit
59a25d6f4d
@ -49,19 +49,10 @@ zstyle ':vcs_info:git*+set-message:*' hooks git-st git-stash
|
||||
PS1='%B%{$fg[blue]%}[%{$fg[blue]%}%n%{$fg[blue]%}@%{$fg[blue]%}%M %{$fg[blue]%}%~%{$fg[blue]%}]%{$reset_color%}\$%b '
|
||||
RPROMPT='%B%{$fg[blue]%}$vcs_info_msg_0_%{$reset_color%}%b'
|
||||
|
||||
source /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
|
||||
bindkey '\t' menu-select "$terminfo[kcbt]" menu-select
|
||||
bindkey -M menuselect '\t' menu-complete "$terminfo[kcbt]" reverse-menu-complete
|
||||
bindkey -M menuselect '^ ' autosuggest-accept
|
||||
zstyle ':autocomplete:*' list-lines 100
|
||||
zstyle ':autocomplete:*' widget-style menu-select
|
||||
zle -A {.,}history-incremental-search-forward
|
||||
zle -A {.,}history-incremental-search-backward
|
||||
zstyle ':autocomplete:*' fzf-completion yes
|
||||
zstyle ':autocomplete:*' recent-dirs zsh-z
|
||||
zstyle ':autocomplete:*' menu select
|
||||
zstyle ':autocomplete:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # Case insensitive completion
|
||||
zstyle ':autocomplete:*' insert-unambiguous yes
|
||||
zstyle ':completion:*' menu select
|
||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # Case insensitive completion
|
||||
zmodload zsh/complist
|
||||
_comp_options+=(globdots) # Include hidden files
|
||||
|
||||
# Enable vi mode
|
||||
bindkey -v
|
||||
@ -145,6 +136,9 @@ source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
# Load fast-syntax-highlighting; should be last.
|
||||
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
||||
|
||||
# fuzzy completion
|
||||
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh
|
||||
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
tmux attack-session -t $USER || tmux new-session -s $USER
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user