3 ms·
Has anyone figured out a good way to use (neo)vim with devcontainers?
by mr_mitm 6mo ago
Has anyone figured out a good way to use (neo)vim with devcontainers?
- Oxodao 6mo agohaven't tried it but amitds1997/remote-nvim.nvim I need something like that though that's one of the thing that pains me the most while trying to use vim/nvim for dev
- implicitcoder 6mo ago[dead]
- datsci_est_2015 6mo agoI personally just use Vim directly in a dedicated development VM that I SSH into. I can always spin up a new one if something goes astray
- mr_mitm 6mo agoI'd prefer containers, because they are more light weight and I'm not too concerned about kernel exploits or other sandbox escapes. Configuring a container per project brings me right back to something like devcontainer. But I haven't figured out a good way to incorporate that into my vim/tmux workflow.
- datsci_est_2015 6mo agoHmm, maybe I misunderstood the point of the original comment. I thought the OP was suggesting using containers to isolate resources for development vs personal computing, for which I use a VM. But VMs don’t play nicely with IDEs (hence devcontainers).
- Izkata 6mo agoI use vim with docker compose all the time: Set up the compose file to bind-mount the repo inside the container, so you can edit files freely outside it, and add a convenience "make shell" that gets you inside the container for running commands (basically just "docker compose exec foo bash"). It sounds like if you make devcontainers point at an existing Dockerfile it should be easy to make these work together, so you and teammates both use the same configuration. I haven't used devcontainers though.