Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'contrib/completion/hx.zsh')
-rw-r--r--contrib/completion/hx.zsh10
1 files changed, 2 insertions, 8 deletions
diff --git a/contrib/completion/hx.zsh b/contrib/completion/hx.zsh
index 6ffccb18..16631519 100644
--- a/contrib/completion/hx.zsh
+++ b/contrib/completion/hx.zsh
@@ -14,18 +14,11 @@ _hx() {
"--health[Checks for errors in editor setup]:language:->health" \
"-g[Fetches or builds tree-sitter grammars]:action:->grammar" \
"--grammar[Fetches or builds tree-sitter grammars]:action:->grammar" \
- "--vsplit[Splits all given files vertically]" \
- "--hsplit[Splits all given files horizontally]" \
- "-c[Specifies a file to use for configuration]" \
- "--config[Specifies a file to use for configuration]" \
- "-w[Specify initial working directory]" \
- "--working-dir[Specify initial working directory]" \
- "--log[Specifies a file to use for logging]" \
"*:file:_files"
case "$state" in
health)
- local languages=($(hx --health all-languages | tail -n '+2' | awk '{print $1}' | sed 's/\x1b\[[0-9;]*m//g;s/[✘✓]//g'))
+ local languages=($(hx --health |tail -n '+7' |awk '{print $1}' |sed 's/\x1b\[[0-9;]*m//g'))
_values 'language' $languages
;;
grammar)
@@ -33,3 +26,4 @@ _hx() {
;;
esac
}
+