-
Notifications
You must be signed in to change notification settings - Fork 30
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
Provide an example of how to install a package / plugin with a post-install hook #55
Comments
Sorry for the late response.
How did you check it? Did you see any error messages? |
I have been looking into how to do something similar, and am wondering how you managed to get the |
Before executing the post-update hook, minpac will change the cwd to the plugin directory. |
Thanks @k-takata for the quick response, I will have to troubleshoot to see what I've done wrong with my setup. I'm sure I made a mistake someplace |
I have the following in a file with a list of package installs: call minpac#add('neoclide/coc.nvim', {'do': '!install.sh'}) I don't know what I'm doing wrong, but it's failing to run Any suggestions? I'm trying to create a deployable (via git) vim config, and the manual step of compiling https://github.com/neoclide/coc.nvim is the one missing link so far. EDIT: I found my issue. It should have been: call minpac#add('neoclide/coc.nvim', {'do': '!./install.sh'}) |
I've been using minpac for a little bit, and I really enjoy the simplistic nature of it, but the terse example of working with packages in the README.md that require post-install hooks comes across as a little bit confusing to me. 🤷♂️ I'm no Vimscript ninja by any means, but I gave it the ol college attempt at trying to understand at what is going on with setting up a package / plugin that requires a post-install hook.
Presently I'm using vim-markdown-composer to preview markdown documents that I edit via Vim and Neovim in my default browser, and vim-markdown-composer requires a working rust toolchain to compile properly. I tried a couple of scenarios to download the vim-markdown-composer package and get it to build all in one step when running
PackUpdate
but the only solution that I'm presently able to get working is,Optionally I could not get the below to work
Ideally, in a perfect world, I'd like to call function to update the cargo build of this package, when either the vim package or the rust toolchain is updated which seems to be quite frequent.
The ol have my cake 🎂 and eat it, 🍰 at the same time.
The text was updated successfully, but these errors were encountered: