Content-Length: 280352 | pFad | http://github.com/beckitrue/devpod-neovim

A5 GitHub - beckitrue/devpod-neovim: Setting up a devpod running neovim
Skip to content

beckitrue/devpod-neovim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

devpod-neovim

This is a devpod for neovim Proof of Concept. It's using the open source DevPod development environment running on Docker. There are other provider options for running DevPod, such as using Kubernetes, or cloud providers but I'm using Docker for this PoC.

This is a great way to try Neovim without having to install it on your local machine. And it even reuses your local credentials, which makes development smooth!

I can definitely see the value of having a standard development environment that is portable. This would also be great for use in training courses or for onboarding new developers, no matter which IDE you use.

You can read more about the approach I took to create this devpod here, or just get started building it by following the instructions below.

Demo

You can see the demo of the devpod-neovim in action by clicking on the image below:

Watch the video demo

The DevPod

I'm testing using the same dotfiles that I use on my local machine. I didn't make any changes since this is a PoC but, for a real use case I would have dotfiles for the specific environment needed.

For example, this devpod is using a go image, but in my neovim configration files I load Python and Node LSPs. This results in a (non-fatal) error message when running neovim on this devpod.

Neovim Plugins Installed

Expand to see list of plugins [ "Comment.nvim", "FTerm.nvim", "LuaSnip", "cmp-nvim-lsp", "cmp_luasnip", "copilot.vim", "fidget.nvim", "gen.nvim", "git-worktree.nvim", "gitsigns.nvim", "go.nvim", "goto-preview", "guihua.lua", "harpoon", "indent-blankline.nvim", "lazy.nvim", "lazygit.nvim", "lspkind.nvim", "lua-utils.nvim", "lualine.nvim", "markdown-preview.nvim", "mason-lspconfig.nvim", "mason.nvim", "neorg", "noice.nvim", "nui.nvim", "nvim", "nvim-cmp", "nvim-dap", "nvim-dap-go", "nvim-dap-ui", "nvim-dap-virtual-text", "nvim-lspconfig", "nvim-nio", "nvim-notify", "nvim-transparent", "nvim-tree.lua", "nvim-treesitter", "nvim-web-devicons", "obsidian.nvim", "onedark.nvim", "pathlib.nvim", "plenary.nvim", "snacks.nvim", "telescope-fzf-native.nvim", "telescope-symbols.nvim", "telescope.nvim", "twilight.nvim", "vim-fugitive", "vim-pencil", "vim-sleuth", "vim-surround", "zen-mode.nvim" ]

Try It Out

You can try out the same configuration that I have by following the instructions below (assumes you have docker installed):

Install DevPod

  1. Optional if you want a GUI: Install DevPod for your environment
  2. Install the DevPod CLI
  3. Set your devpod provider to docker:
devpod provider use docker

Verify your provider setting:

devpod provider list

Build the DevPod

  1. Start Docker
  2. In the terminal, run the following command to build the devpod:
devpod up https://github.com/beckitrue/devpod-neovim --provider docker --dotfiles https://github.com/beckitrue/dotfiles ide use none

Initial Run of Neovim

Login to the devpod (no password needed):

ssh devpod-neovim.devpod
  1. Run nvim to start neovim. The first run will install the plugins, so it may take a minute.
  2. From the main menu select Lazy or type L
  3. Update to update the plugins
  4. 'q' to quit Lazy and return to the main menu
  5. 'c' to view the list of config files. You can scroll through the list with the arrow keys and select one to open by pressing enter.
  6. You can checkhealth by running :checkhealth
  7. Logout by typing exit
  8. Stop the devpod after logging out by running:
devpod stop devpod-neovim

Post Build Usage

After you've built the devpod once, you can start it again and reconnect to it without having to rebuild it.

devpod start devpod-neovim
ssh devpod-neovim.devpod

Configuration Changes

You can copy and change the .devcontainer.json file to add or remove packages. Run

devpod up <path to .devcontainer> devpod-neovim --recreate

after making changes to the devcontainer.json file.

Learn How to Create Your Own DevPod

Here's a lab that walks you through creating your own devpod: Create a DevPod Lab

About

Setting up a devpod running neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/beckitrue/devpod-neovim

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy