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
Current documentation suggests for plugins to self register. Back then it was a good idea as it loaded plugins configuration-free.
Current implementation (right and left prompt pluggable) enables further customization and it makes sense to be able to tell the plugins to either load at the right or left prompt:
GEOMETRY_PROMPT_PLUGINS_SECONDARY=(custom_plugin ...)
# Or
GEOMETRY_PROMPT_PLUGINS_PRIMARY=(custom_plugin ...)
This conflicts with the current plugin loading approach as by default self-registration uses the SECONDARY prompt as target.
We do support both registration methods but should update the documentation to use the configuration approach rather than self-registration.
An example configuration would be such as:
# Add the plugin to a prompt, in this example "secondary"
GEOMETRY_PROMPT_PLUGINS_SECONDARY=(custom_plugin ...)
# Source the plugin script BEFORE geometry
source custom_plugin.zsh
# Finally source geometry theme
source geometry.zsh
The text was updated successfully, but these errors were encountered:
Current documentation suggests for plugins to self register. Back then it was a good idea as it loaded plugins configuration-free.
Current implementation (right and left prompt pluggable) enables further customization and it makes sense to be able to tell the plugins to either load at the right or left prompt:
This conflicts with the current plugin loading approach as by default self-registration uses the
SECONDARY
prompt as target.We do support both registration methods but should update the documentation to use the configuration approach rather than self-registration.
An example configuration would be such as:
The text was updated successfully, but these errors were encountered: