summaryrefslogtreecommitdiff
path: root/plugins/volta
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/volta')
-rw-r--r--plugins/volta/volta.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/volta/volta.plugin.zsh b/plugins/volta/volta.plugin.zsh
index 756dc84b3..79319394c 100644
--- a/plugins/volta/volta.plugin.zsh
+++ b/plugins/volta/volta.plugin.zsh
@@ -11,7 +11,7 @@ command mkdir -p "$ZSH_CACHE_DIR/completions"
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `deno`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_volta" ]]; then
- declare -A _comps
+ typeset -g -A _comps
autoload -Uz _volta
_comps[volta]=_volta
fi