summaryrefslogtreecommitdiff
path: root/halfway
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-04-05 11:15:47 +0900
committerA Farzat <a@farzat.xyz>2024-10-14 15:58:11 +0900
commit25d5b64294ce3c676690799fa176265f77ec9713 (patch)
tree5e61b4c430082d3fb77f8060e01745dcf0377d0f /halfway
parent7f8103f42a22adf944db616ec13d2abd36ecb0db (diff)
downloadzsh-25d5b64294ce3c676690799fa176265f77ec9713.tar.gz
zsh-25d5b64294ce3c676690799fa176265f77ec9713.zip
Add completion settings
Diffstat (limited to 'halfway')
-rw-r--r--halfway/completion.zsh12
1 files changed, 12 insertions, 0 deletions
diff --git a/halfway/completion.zsh b/halfway/completion.zsh
new file mode 100644
index 0000000..da4d070
--- /dev/null
+++ b/halfway/completion.zsh
@@ -0,0 +1,12 @@
+# Make completion case insensitive.
+zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
+# Disable sort when completing `git checkout`.
+zstyle ':completion:*:git-checkout:*' sort false
+# Set descriptions format to enable group support.
+zstyle ':completion:*:descriptions' format '[%d]'
+# Set list-colors to enable filename colorizing.
+zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+# Preview directory's content with eza when completing cd.
+zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'
+# Switch group using `,` and `.`.
+zstyle ':fzf-tab:*' switch-group ',' '.'