Using Prezto with antidote #72
mattmc3
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NOTE: See update below
You can use Prezto modules just like any other plugin with the help of the
path:
annotation. However, you need to understand some of the internals of Prezto to use it effectively.If you aren't using Prezto's main init file, you need to follow a few simple tips to get Prezto to work:
pmodload
function for loading modules. You won't need that with antidote, but it still has to exist - so you will need to create an emptypmodload
function yourself..zpreztorc
with itszstyle
configurations. You will need to do that yourself, or add Prezto'szstyles
to your.zshrc
prior to loading it.helper
module first or any dependencies prior to other modules.kind:autoload
annotation.Prezto isn't treated differently than any other bundle in antidote, which means all of Prezto's inter-dependencies will be yours to manage, should you choose to leverage it.
Updated answer 2024-08-01
I have published a new plugin, getantidote/use-prezto which makes using Prezto much easier. Instead of defining your own
pmodload
, sourcing .zpreztorc, loadinghelper
first, and doing all that other setup noise - you can now simply load getantidote/use-prezto first and it will handle all that setup for you:Beta Was this translation helpful? Give feedback.
All reactions