demo-temp-nvim.mp4
Dockerized Neovim setup with lazyvim and pre-installed plugins based on Alpine Linux.
- Docker installed on your machine.
In the directory you want to test this config use: sudo docker run -it --rm -v=$PWD:/home/temp/hostfiles lenoxo/nvimdocker:latest nvim
- Place the
.localand.npmfolders with the cache inside./context/after installing plugins in another container.- In my case, I did it the first time with a bind mount in the current working directory, like this:
cd ./context/ mkdir .local .npm sudo docker run -d -v=$PWD/.npm:/root/.npm -v=$PWD/.local:/root/.local --name alpvim alpine:latest tail -f /dev/null
- After that, install dependencies, clone the config, and open Neovim to install plugins with lazyvim:
apk add git lazygit neovim ripgrep nodejs npm alpine-sdk --update git clone https://github.com/Lenoxo/nvim-config.git ~/.config/nvim nvim - Now you can stop the container, and the cache is saved in
.localand.npmwithincontext/.
- In my case, I did it the first time with a bind mount in the current working directory, like this:
- Run
sudo docker build -t nvimdocker .to build the image using the cache incontext/. - Lastly, you can use
sudo docker run -it --rm -v=$PWD:/home/temp/hostfiles nvimdocker:latest nvimto run Neovim.
This project is under the MIT License.
Emanuel Padilla (Lenoxo)