docs: update example configuration
Some checks failed
Linux compability / test (archlinux:latest) (push) Has been cancelled
Linux compability / test (ubuntu:latest) (push) Has been cancelled
macOS compability / test (push) Has been cancelled
Zsh compability / test (5.3.1) (push) Has been cancelled
Zsh compability / test (5.4.2) (push) Has been cancelled
Zsh compability / test (5.5.1) (push) Has been cancelled
Zsh compability / test (5.6.2) (push) Has been cancelled
Zsh compability / test (5.7.1) (push) Has been cancelled
Zsh compability / test (5.8) (push) Has been cancelled
Zsh compability / test (5.9) (push) Has been cancelled

Signed-off-by: Aloxaf <aloxafx@gmail.com>
This commit is contained in:
Aloxaf 2024-09-25 19:12:31 +08:00
parent 0b49f3e8a3
commit cf57116eb2
No known key found for this signature in database
GPG key ID: 0F8D23F44B277E02

View file

@ -106,7 +106,7 @@ A common configuration is:
# disable sort when completing `git checkout`
zstyle ':completion:*:git-checkout:*' sort false
# set descriptions format to enable group support
# NOTE: don't use escape sequences here, fzf-tab will ignore them
# NOTE: don't use escape sequences (like '%F{red}%d%f') here, fzf-tab will ignore them
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
@ -114,6 +114,9 @@ zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' menu no
# preview directory's content with eza when completing cd
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'
# custom fzf flags
# NOTE: fzf-tab does not follow FZF_DEFAULT_OPTS
zstyle ':fzf-tab:*' fzf-flags --color=fg:1,fg+:2 --bind=tab:accept
# switch group using `<` and `>`
zstyle ':fzf-tab:*' switch-group '<' '>'
```