zsh_codex icon indicating copy to clipboard operation
zsh_codex copied to clipboard

Support zinit zsh plugin system

Open poetaman opened this issue 2 years ago • 5 comments

Please add support for zinit plugin system: https://github.com/zdharma-continuum/zinit. Thanks a lot for this amazing project!

poetaman avatar Apr 08 '22 00:04 poetaman

Thanks for the issue, I should add support for other plugin managers. In the meantime you could set ZSH_CUSTOM yourself so the following code line works:

    completion=$(echo -n "$text" | $ZSH_CUSTOM/plugins/zsh_codex/create_completion.py $CURSOR)

tom-doerr avatar Apr 10 '22 23:04 tom-doerr

Just a heads up that the ZSH_CUSTOM workaround doesn't work with antibody as the default path is $XDG_CACHE_HOME/antibody/

(no plugins directory)

ceuk avatar Mar 04 '24 16:03 ceuk

@ceuk I know it's not perfect but you could create a zsh_custom folder that contains a symlink plugins that points to $XDG_CACHE_HOME/antibody/

tom-doerr avatar Mar 19 '24 21:03 tom-doerr

@tom-doerr that's exactly what I did end up doing :)

ceuk avatar Mar 20 '24 10:03 ceuk