@@ -12,42 +12,46 @@ zstyle ':completion:*:approximate:*' max-errors 2 numeric
1212zstyle ' :completion:*:descriptions' format ' [%d]'
1313# set list-colors to enable filename colorizing
1414zstyle ' :completion:*' list-colors ${(s.: .)LS_COLORS}
15- # force zsh not to show completion menu, which allows fzf-tab to capture the unambiguous prefix
16- zstyle ' :completion:*' menu no
17- # To make fzf-tab follow FZF_DEFAULT_OPTS.
18- # NOTE: This may lead to unexpected behavior since some flags break this plugin. See Aloxaf/fzf-tab#455.
19- zstyle ' :fzf-tab:*' use-fzf-default-opts no
20- zstyle ' :fzf-tab:*' fzf-flags --height 60% --reverse --margin=3% --style=full \
21- --border=rounded --border-label=' fzf-tab ' \
22- --prompt=' $ > ' --input-border --input-label=' Input ' \
23- --list-border --highlight-line --gap --pointer=' >' \
24- --preview-border --preview-label=' Previewing ' \
25- --color ' border:#ca9ee6,label:#cba6f7' \
26- --color ' input-border:#ea999c,input-label:#eba0ac' \
27- --color ' list-border:#81c8be,list-label:#94e2d5' \
28- --color ' preview-border:#f2d5cf,preview-label:#f5e0dc' \
29- --color ' info:#cba6f7,pointer:#f5e0dc,spinner:#f5e0dc,hl:#f38ba8' \
30- --color ' marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8' \
31- --color ' selected-bg:#45475a'
32-
33- # zstyle ':fzf-tab:*' fzf-preview 'pistol ${(Q)realpath}'
34- # switch group using `<` and `>`
35- zstyle ' :fzf-tab:*' switch-group ' <' ' >'
36- # zstyle ':fzf-tab:*' accept-line enter # don't trigger enter after selected
37-
38- # show systemd unit status
39- zstyle ' :fzf-tab:complete:systemctl-*:*' fzf-preview ' SYSTEMD_COLORS=1 systemctl status $word'
40-
41- # show environment variable
42- zstyle ' :fzf-tab:complete:(-command-|-parameter-|-brace-parameter-|export|unset|expand):*' \
43- fzf-preview ' echo ${(P)word}'
44-
45- # show alias
46- zstyle ' :fzf-tab:complete:alias:*' fzf-preview ' alias $word'
47-
48- # man or help
49- zstyle ' :fzf-tab:complete:(\\|)run-help:*' fzf-preview ' run-help $word'
50- zstyle ' :fzf-tab:complete:(\\|*/|)man:*' fzf-preview ' man $word'
15+ # # force zsh not to show completion menu, which allows fzf-tab to capture the unambiguous prefix
16+ # zstyle ':completion:*' menu no
17+ # # To make fzf-tab follow FZF_DEFAULT_OPTS.
18+ # # NOTE: This may lead to unexpected behavior since some flags break this plugin. See Aloxaf/fzf-tab#455.
19+ # zstyle ':fzf-tab:*' use-fzf-default-opts no
20+ # zstyle ':fzf-tab:*' fzf-flags --height 60% --reverse --margin=3% --style=full \
21+ # --border=rounded --border-label=' fzf-tab ' \
22+ # --prompt='$ > ' --input-border --input-label=' Input ' \
23+ # --list-border --highlight-line --gap --pointer='>' \
24+ # --preview-border --preview-label=' Previewing ' \
25+ # --color 'border:#ca9ee6,label:#cba6f7' \
26+ # --color 'input-border:#ea999c,input-label:#eba0ac' \
27+ # --color 'list-border:#81c8be,list-label:#94e2d5' \
28+ # --color 'preview-border:#f2d5cf,preview-label:#f5e0dc' \
29+ # --color 'info:#cba6f7,pointer:#f5e0dc,spinner:#f5e0dc,hl:#f38ba8' \
30+ # --color 'marker:#b4befe,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8' \
31+ # --color 'selected-bg:#45475a'
32+
33+ # # zstyle ':fzf-tab:*' fzf-preview 'pistol ${(Q)realpath}'
34+ # # switch group using `<` and `>`
35+ # zstyle ':fzf-tab:*' switch-group '<' '>'
36+ # # zstyle ':fzf-tab:*' accept-line enter # don't trigger enter after selected
37+
38+ # # show systemd unit status
39+ # zstyle ':fzf-tab:complete:systemctl-*:*' fzf-preview 'SYSTEMD_COLORS=1 systemctl status $word'
40+
41+ # # show environment variable
42+ # zstyle ':fzf-tab:complete:(-command-|-parameter-|-brace-parameter-|export|unset|expand):*' \
43+ # fzf-preview 'echo ${(P)word}'
44+
45+ # # show alias
46+ # zstyle ':fzf-tab:complete:alias:*' fzf-preview 'alias $word'
47+
48+ # # man or help
49+ # zstyle ':fzf-tab:complete:(\\|)run-help:*' fzf-preview 'run-help $word'
50+ # zstyle ':fzf-tab:complete:(\\|*/|)man:*' fzf-preview 'man $word'
51+
52+ # carapace config
53+ zstyle ' :completion:*' format $' \e [2;37mCompleting %d\e [m'
54+ zstyle ' :completion:*:git:*' group-order ' main commands' ' alias commands' ' external commands'
5155
5256# disable sort when completing `git checkout`
5357zstyle ' :completion:*:git-checkout:*' sort false
0 commit comments