My Vim Settings and a script to auto setup them
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
624 B

#! /bin/bash
if ! docker image ls -q nvim > /dev/null ;then
echo "no nvim image found"
exit 1
fi
container_name=nvim-$USER
if ! docker inspect "${container_name}-home" > /dev/null ; then
docker volume create "${container_name}-home"
fi
docker run --interactive --rm --tty \
--name "$container_name" \
--env "VIM_COLOR=$VIM_COLOR" \
--volume "${container_name}-home:/home/vividboarder" \
--volume "$(pwd):/home/vividboarder/data" \
--workdir /home/vividboarder/data \
--entrypoint /vim-settings/docker-entry.sh \
vividboarder/my-neovim nvim "$@"
# --user "$(id -u):$(id -g)" \