A Docker container to run neovim with plugins to assist PHP development.
-
Clone this repository:
git clone [email protected]:thled/docker-vim-php.git
-
Change to project directory:
cd docker-vim-php
-
Build image (
args
for Copilot and Intelephense keys are optional):docker build --build-arg COPILOT_TOKEN=XXX --build-arg INTELEPHENSE_KEY=YYY -t pvim .
docker run --rm -it -v (pwd):/data pvim
-
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 "pvim":
- Fish:
function pvim docker run --rm -it -v (pwd):/data pvim end funcsave pvim
- Bash:
echo 'alias pvim="docker run --rm -it -v $(pwd):/data pvim"' >> ~/.bashrc