Skip to content

Reasoning behind "symlink" and "copy" strategy #316

@hupfdule

Description

@hupfdule

Hi,

this is just a question.

What is the reason for downloading the actual git repository to
$VOLTREPOSPATH and later copying or symlinking them to ~/.vim/pack/volt/opt
instead of storing them in ~/.vim/pack/volt/opt directly?

Since the bundled_plugconf.vim file is generated for the current profile,
the ~/.vim/pack/volt/opt directory could actually contain the repositories
for all profiles, but the bundled_plugconf.vim file would only load those
that are active in the current profile.

This would also allow the user to activate a plugin manually that is not
contained in the current profile.¹

Is there something I a missing? Is there some additional benefit of
separating the $VOLTREPOSPATH and the ~/.vim/pack/volt/opt directory?

I thought about adding an additional build strategy to volt for the purpose
of downloading the git repositories directly to ~/.vim/pack/volt/opt, but
noticed that this would be an intrusive change that needed to be applied to a
bunch of other places, too.

[¹] However, that would leave out the plugconf file for that plugin. To
allow reading the plugconf file in such a case the user would need a
vim-volt plugin that provides a command (e.g. Packadd) to load the package
with packadd and read in the corresponding plugconf file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions