You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
First, Prezto assumes there is a 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 empty pmodload function yourself.
Second, Prezto won't source its .zpreztorc with its zstyle configurations. You will need to do that yourself, or add Prezto's zstyles to your .zshrc prior to loading it.
Third, you need to make sure you load the helper module first or any dependencies prior to other modules.
And finally, any functions directories will need to be autoloaded using antidote's 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, loading helper 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:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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