My personalized Neovim configuration that utilizes Docker containers and volumes to provide a consistent and isolated development environment. With built-in clipboard support using pbcopy, xclip, xsel, and wl-copy, you can seamlessly copy and paste text between your editor and other applications.
- Utilizes Docker containers for an isolated Neovim environment.
- Docker volumes are used for persistent configurations and state.
- Clipboard support using
pbcopy,xclip,xsel, andwl-copy.
- Requires
dockerCLI ornerdctl. pbcopy,xclip,xsel, orwl-copyif you want system clipboard register to work in NeoVim.
Clone the repository to your local machine:
git clone https://github.com/piratey7007/nvim-alpine.gitI personally opt for dvim for mine, but you can rename it to anything in the script.
cd /path/to/setup
./setupThis will copy the necessary files into a new ~/.local/share/nvim-alpine/ folder, as well as add the dvim command to your /usr/local/bin. You can now remove the cloned repository if you want.
- The initial installation will take a short bit, as it will need to pull the Alpine image, and install the plugins.
- Sometimes I've noticed permissions issues come up relating to the volume mounting. If you find any, let me know, or submit a PR please!
- If you want intellisense in your projects, you will need to
dviminto the directory that contains yournode_modulesandpackage.json, reason being that it will automatically isolate that folder into it's owndockerornerdctlcontainer. nerdctlcan be troublesome for beginners to make use of (believe me, I know), so if you want something working faster, I would usedocker.
Now you can run dvim from any terminal window:
dvim ./devThe Dockerfile, clipboard.txt, and .config get stored in ~/.local/share/nvim-alpine/ after running the setup for the first time. If you want to customize anything, it's all stored there, so either delete or replace it.
If you find any issues with this, make an issue or pull request. I'm happy to answer any questions or add to it.