From a62731e0bfcc1fb18a775555f4d62d123cbdc1d0 Mon Sep 17 00:00:00 2001 From: Jane Roxanne Date: Sun, 15 Dec 2019 13:01:16 -0500 Subject: [PATCH] whoops --- completion/zsh/_luacomp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/completion/zsh/_luacomp b/completion/zsh/_luacomp index 4e9f979..e91cf99 100644 --- a/completion/zsh/_luacomp +++ b/completion/zsh/_luacomp @@ -1,11 +1,16 @@ #compdef luacomp +_luacomp_postproc() { + procs=( ${(@f)"$(luacomp --post-processors)"} ) + compadd -a procs +} + _luacomp() { local -a options=( {-h,--help}"[Show this help message and exit]" {-O,--output}"[Output file]: :_files" - {-m,--minifier}"[Sets the postprocessor (default\: none)]: :( ${(f)'luacomp --post-processors'} )" - {-x,--executable}"[Makes the script an executable (default\: current lua version)]: :_path_commands" + {-m,--minifier}"[Sets the postprocessor]: :_luacomp_postproc" + {-x,--executable}"[Makes the script an executable]: :_path_commands" "--generator-code[Outputs only the code from the generator]" "--verbose[Verbose output]" "--post-processors[Lists postprocessors]"