Skip to content

Commit b6f6ef2

Browse files
committed
fix: ignore @autoload after @<TAB>
1 parent 0d5b545 commit b6f6ef2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zinit.zsh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,6 +3519,18 @@ zstyle -s ":zinit:action-complete:ice" key ZINIT_TMP || ZINIT_TMP='\eC'
35193519
[[ $CMAKE_PREFIX_PATH != (|*\;)$ZPFX(|\;*) ]]&&CMAKE_PREFIX_PATH="$ZPFX:$CMAKE_PREFIX_PATH"
35203520
[[ $LD_LIBRARY_PATH != (|*:)$ZPFX/lib(|64)(|:*) ]]&&LD_LIBRARY_PATH="$ZPFX/lib:$ZPFX/lib64:$LD_LIBRARY_PATH"
35213521

3522+
.zinit-set-zstyle(){
3523+
local -U -a ZINIT_TMP
3524+
zstyle -a ':completion:*:functions' ignored-patterns ZINIT_TMP
3525+
ZINIT_TMP+=(@autoload)
3526+
zstyle ":completion:*:functions" ignored-patterns $ZINIT_TMP
3527+
}
3528+
3529+
zinit null wait lucid atload'.zinit-set-zstyle' for \
3530+
%$ZINIT[BIN_DIR]
3531+
ZINIT_REGISTERED_PLUGINS[-1]=()
3532+
3533+
35223534
# Local Variables:
35233535
# mode: Shell-Script
35243536
# sh-indentation: 2

0 commit comments

Comments
 (0)