Use Neovim (NvChad v2.5 distro) from docker container!
-
Build image locally using
docker build --platform linux/amd64 -t nvim-docker . -
Run the container using
docker run -it --platform linux/amd64 --name vnvim -v $(pwd):/workspace nvim-dockerHere
${pwd}is the present working directory. If you want you can use explicit path to map it to the/workspacedirectory of the container. The namevnvimis assigned to the container. We can use this name with docker commands for performing operations on this container. -
When you quit neovim using
:qetc commands, the container will stop. -
Restart neovim from same container using
docker start -ai vnvim