Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fpath before sourcing the plugin #33

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

jandamm
Copy link
Owner

@jandamm jandamm commented Dec 4, 2020

If the plugin wants to autoload a function it has to add itself to
fpath. Ideally the plugin manager should take care of this.

Now zgenom modifies the fpath before sourcing the plugin. To keep consistency, the order of fpaths is now inverted since now the first
load is added the first instead of prepended at the first position.

Closes tarjoilija/zgen#105

If the plugin wants to autoload a function it has to add itself to
`fpath`. Ideally the plugin manager should take care of this.

Now zgenom adds modifies the fpath before sourcing the plugin. To keep
it consistent the order of fpaths is now inverted since now the first
`load` is added the first instead of prepended at the first position.

Closes tarjoilija/zgen#105
@jandamm jandamm merged commit aaea7da into main Dec 11, 2020
@jandamm jandamm deleted the Add-fpath-before-sourcing-the-plugin branch December 11, 2020 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why is $fpath extended after sourcing plugins?
1 participant