~esensar/nvim-dev-container-discuss

2

Custom neovim install script

John Krueger <johnk@linux.com>
Details
Message ID
<825d912d-9da5-467c-a2e9-f3ee5db44122@app.fastmail.com>
DKIM signature
missing
Download raw message
When I'm prompted to install neovim on the container, it fails. I'm having to build from source on my container because there's no recent package for my chosen linux. Is there a way to define my own custom install script to run when prompted? 

It's probably already in the settings and I just wasn't savvy enough to pick up where I need to put it. If this functionality doesn't exist already, it's not a huge deal and I'll probably  end up taking care of it on the docker side so neovim is pre-installed.

Thanks in advance for any help this is a great tool you've built!
Details
Message ID
<CW5JH3ESQRAH.3NHKYEJWC86VX@fedora>
In-Reply-To
<825d912d-9da5-467c-a2e9-f3ee5db44122@app.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
On Tue Oct 10, 2023 at 4:40 PM CEST, John Krueger wrote:
> When I'm prompted to install neovim on the container, it fails. I'm having to build from source on my container because there's no recent package for my chosen linux. Is there a way to define my own custom install script to run when prompted? 
>
> It's probably already in the settings and I just wasn't savvy enough to pick up where I need to put it. If this functionality doesn't exist already, it's not a huge deal and I'll probably  end up taking care of it on the docker side so neovim is pre-installed.

Unfortunately, you are not missing it. Seems I forgot to update it when
I was refactoring that part of the functionality. Previously it was done
using temporary `Dockerfile` and you can see that configuration option
available right now, but it is not doing anything. I am working on
removing it and providing a separate configuration option to provide
your own commands for installing neovim.

>
> Thanks in advance for any help this is a great tool you've built!

Thank you for reporting this and I hope this plugin will serve you well!

-- 
Ensar Sarajčić
w: www.ensarsarajcic.com
Details
Message ID
<CW5K2V63HLS9.2SNJL3PT0T7A4@fedora>
In-Reply-To
<CW5JH3ESQRAH.3NHKYEJWC86VX@fedora> (view parent)
DKIM signature
missing
Download raw message
I have now added this feature, it is available on `main` branch.

Custom commands can be defined in `nvim_installation_commands_provider`
function, which can be provided to the `setup` function.

You can check out the default implementation in https://codeberg.org/esensar/nvim-dev-container/src/commit/415332f479ca873147f489fcf3cfb5a83fbed0c1/lua/devcontainer/config.lua#L54
-- 
Ensar Sarajčić
w: www.ensarsarajcic.com
Reply to thread Export thread (mbox)