A Docker container to run neovim with plugins to assist Go development.
-
Clone this repository:
git clone [email protected]:thled/docker-vim-go.git
-
Change to project directory:
cd docker-vim-go
-
Build image (
arg
for Copilot is optional):docker build --build-arg COPILOT_TOKEN=XXX -t gvim .
docker run --rm -it -v (pwd):/data gvim
-
Useful key bindings: https://gist.github.com/thled/a6fcf4a02108598ae9ba5a8ab01d84e0#editor-neovim
-
Remap detach keys:
echo '{ "detachKeys": "ctrl-q,q" }' > ~/.docker/config.json
-
Save as alias "gvim":
- Fish:
function gvim docker run --rm -it -v (pwd):/data gvim end funcsave gvim
- Bash:
echo 'alias gvim="docker run --rm -it -v $(pwd):/data gvim"' >> ~/.bashrc