Skip to content

Use of after directory, antipattern. #60

@navneetankur

Description

@navneetankur

This plugin uses after directory to run a script.
But if you don't use any plugin manager and rely on pack/*/opt directory and packadd command to load plugin. The script in after directory is not sourced. Causing the plugin to not function.

After directory was supposed to be used by system admins and not plugins. I know now plugin managers source the scripts in after directory, but is it really needed here.

If someone is using plugin manager they should ensure that this plugin's autocmd is run correctly. Instead of authors using the after dir.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions