After having a look at the initial script ~.zgen/init.zsh, I found some duplicates in pmodload statement at the end of the file. According to issue #74, the duplicate items added are from default configuration of prezto.
I realized pmodload ensures every plugin is loaded only once. But I don't think the behavior of loading some default plugins in a plugin manager as a good idea, cause priority matters for plugins. Default prezto modules loaded by pmodload breaks the capability for users to control the priority themselves.
Luckily, export ZGEN_PREZTO_LOAD_DEFAULT=0 could avoid the loading of default plugins in prezto.
After having a look at the initial script
~.zgen/init.zsh
, I found some duplicates inpmodload
statement at the end of the file. According to issue #74, the duplicate items added are from default configuration of prezto.I realized
pmodload
ensures every plugin is loaded only once. But I don't think the behavior of loading some default plugins in a plugin manager as a good idea, cause priority matters for plugins. Default prezto modules loaded bypmodload
breaks the capability for users to control the priority themselves.Luckily,
export ZGEN_PREZTO_LOAD_DEFAULT=0
could avoid the loading of default plugins in prezto.Some essential priorities for plugins in prezto:
utility > compinit > syntax-highlighing > history-substring-search > autosuggestions
utility > compinit > syntax-highlighing > prompt
utility > compinit > fasd
Is there any reason that zgen stick to this behavior? At least, we'd better tell users about this behavior in
README.md
.