All Projects → jamestthompson3 → nvim-remote-containers

jamestthompson3 / nvim-remote-containers

Licence: other
Develop inside docker containers, just like VSCode

Programming Languages

lua
6591 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to nvim-remote-containers

tabby.nvim
A declarative, highly configurable, and neovim style tabline plugin. Use your nvim tabs as a workspace multiplexer!
Stars: ✭ 232 (-31.76%)
Mutual labels:  nvim
ncm2-otherbuf
ncm2 plugin for completing words in other buffers
Stars: ✭ 19 (-94.41%)
Mutual labels:  nvim
neocode
Completely theme responsive, lean, streamlined lua configuration for neovim (dotfiles). NeoCode aims to provide a fluent experience in nvim and vscode.
Stars: ✭ 38 (-88.82%)
Mutual labels:  nvim
bubbly.nvim
Bubbly statusline for neovim
Stars: ✭ 185 (-45.59%)
Mutual labels:  nvim
rust-tools.nvim
Tools for better development in rust using neovim's builtin lsp
Stars: ✭ 1,221 (+259.12%)
Mutual labels:  nvim
yaml.nvim
🍒 YAML toolkit for Neovim users
Stars: ✭ 81 (-76.18%)
Mutual labels:  nvim
nightfox.nvim
🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
Stars: ✭ 1,489 (+337.94%)
Mutual labels:  nvim
blossom.vim
a simple pinkish vim colorscheme designed for cursive italics
Stars: ✭ 18 (-94.71%)
Mutual labels:  nvim
nvim-highlite
A colorscheme template that is "lite" on logic for the developer.
Stars: ✭ 163 (-52.06%)
Mutual labels:  nvim
nvim
Repository for the Tandem NeoVim Plugin
Stars: ✭ 23 (-93.24%)
Mutual labels:  nvim
dots
Code Smell Dotfiles
Stars: ✭ 163 (-52.06%)
Mutual labels:  nvim
nvim
❤️ A neovim config repo.
Stars: ✭ 33 (-90.29%)
Mutual labels:  nvim
neovimfiles
My Neovim configuration written in Lua
Stars: ✭ 52 (-84.71%)
Mutual labels:  nvim
firvish.nvim
WIP
Stars: ✭ 31 (-90.88%)
Mutual labels:  nvim
kali-config
Linux colorful dotfiles.
Stars: ✭ 40 (-88.24%)
Mutual labels:  nvim
cargo-limit
Cargo with less noise: warnings are skipped until errors are fixed, Neovim integration, etc.
Stars: ✭ 105 (-69.12%)
Mutual labels:  nvim
telescope-zoxide
An extension for telescope.nvim that allows you operate zoxide within Neovim.
Stars: ✭ 126 (-62.94%)
Mutual labels:  nvim
zk-nvim
Neovim extension for zk
Stars: ✭ 207 (-39.12%)
Mutual labels:  nvim
dotfiles
Opinionated garbage for your terminal. Gotta get that yolo swag.
Stars: ✭ 37 (-89.12%)
Mutual labels:  nvim
imnotaquitter.vim
Don't be a quitter. Be a real one.
Stars: ✭ 20 (-94.12%)
Mutual labels:  nvim

NVIM-Remote-Containers

This plugin aims to give you the functionality of VSCode's remote container development plugin. It will allow you to spawn and develop in docker containers and pulls config information from a devcontainer.json file.

Available Lua Functions

  • parseConfig: parses devcontainer.json file--takes in argument specifying type (dockerCompose, dockerFile, image)
  • attachToContainer: Attaches to a docker container or builds a container from a user chose image
  • buildImage: Builds container from the Dockerfile specified in the devcontainer.json file. Takes a boolean parameter to determine whether or not to show the build process in a floating window or in the quickfix list.
  • composeUp: Brings docker-compose up
  • composeDown: Brings docker-compose down
  • composeDestroy: Destorys docker-compose containers

Available Vim Commands

  • AttachToContainer wrapper for the attachToContainer lua function.
  • BuildImage wrapper for the buildImage lua function, takes "true" or "false" as an argument to decide whether or not to show the build progress in a floating window.
  • StartImage lists all available images and starts the one selected by you given the arguments found in the devcontainer.json file in your project's workspace.
  • ComposeUp wrapper for composeUp lua function.
  • ComposeDown wrapper for composeDown lua function.
  • ComposeDestroy wrapper for composeDestroy lua function.

Extras

Set your statusline to reflect the current connected container through g:currentContainer:

hi Container guifg=#BADA55 guibg=Black
set statusline+=%#Container#%{g:currentContainer}

Usage

If you are in the root directory that has the .devcontainer/ folder, you can run the following vim commands:

" If you haven't built the image specified in you config.
" Takes `true` or `false` depending on whether or not you want to see the build progress in a floating window.
:BuildImage
" Attach to the container you just built / a previously built container
:AttachToContainer
" Start a container from a pre-built image
:StartImage

" Runs the docker-compose -f <file> up
:ComposeUp
" Runs docker-compose -f <file> down
:ComposeDown
" Runs docker-compose rm <file> -fsv
:ComposeDestroy

Contributing

Lua code is formatted in a pre-commit hook using stylelua. Please install this as part of contributing to the project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].