-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature Request: Post install action #13
Comments
Sounds like a slippery slope ;) I don't use any plugins requiring a post-install step but if I did I'd probably want voom to support that. We would need to figure out:
|
OK, cool. I'll have a think about it and put some further comments here when I do. |
I have a feature for the same problem in my An example config:
I have both a post_update hook and a post_install hook, which run after their respective actions. For |
Maybe this could be done with git hooks? https://git-scm.com/docs/githooks |
Example:
Would generate: #!/bin/sh
# ~/.vim/pack/voom/start/plugin/.git/hooks/post-merge
make
echo Finished building plugin |
@eNV25 Presumably that would mean creating a directory for the plugin before cloning, writing the hook files, then cloning – instead of just cloning. It feels a little too fiddly to me. I like your example syntax though. How about something like:
Or using @Integralist @Rycieos Would that work for you? |
Oh hey 👋 I see I opened this 5 years ago. I'm afraid I've moved on since then. So best not to wait on my input. Thanks |
Looks good to me. |
I didn't think about that at first. Anyway, it seems tmpdir="$(mktemp -d)"
mkdir -p "$tmpdir/hooks/"
echo ... > "$tmpdir/hooks/pre-merge"
git clone https://git.example.com/repo.git repo --template="$tmpdir" # or
GIT_TEMPLATE_DIR="$tmpdir" git clone https://git.example.com/repo.git repo
rm -rf "$tmpdir"
That would be fine too. I used the name I would assume |
Heya,
So I'm noticing a lot of plugins using this sort of 'post-install' action:
https://github.com/junegunn/vim-plug#example
One such example being:
https://github.com/roxma/nvim-cm-tern
Is this something you think might be useful to include, or does it push the 'minimalism' focus of voom a bit too much.
Just asking as I could look to open a PR at some point if you thought it would be interesting to include
The text was updated successfully, but these errors were encountered: