Sign inSign up

sbx/neovim-kit:20260924-d058fedc156325f87612d9bcd9bd313ab74ba100

Manifest digest

sha256:499b2c2ebe43b3b57883351d340f9331d5f37434d4f3d8e1b429823f1d0935d5

Last pushed

18 days by dockerpublicbot

Type

Sandbox Kit

Manifest digest

sha256:499b2c2ebe43b3b57883351d340f9331d5f37434d4f3d8e1b429823f1d0935d5

yaml
schemaVersion: "2"
kind: mixin
name: neovim
displayName: Neovim
description: Installs Neovim (latest stable) and injects the bundled ~/.config/nvim into the sandbox.
permissions:
    network:
        allow:
            - github.com
            - objects.githubusercontent.com
            - release-assets.githubusercontent.com
environment:
    variables:
        EDITOR: nvim
        VISUAL: nvim
setup:
    install:
        - command: |
            set -euo pipefail
            ARCH=$(dpkg --print-architecture)
            case "$ARCH" in
              amd64) TARBALL="nvim-linux-x86_64.tar.gz"; NVIM_DIR="nvim-linux-x86_64" ;;
              arm64) TARBALL="nvim-linux-arm64.tar.gz";  NVIM_DIR="nvim-linux-arm64"  ;;
              *)     echo "unsupported arch: $ARCH" >&2; exit 1 ;;
            esac
            curl --proto '=https' --tlsv1.2 -fsSL \
              "https://github.com/neovim/neovim/releases/download/stable/${TARBALL}" \
              -o /tmp/nvim.tar.gz
            tar -C /opt -xzf /tmp/nvim.tar.gz
            ln -sf "/opt/${NVIM_DIR}/bin/nvim" /usr/local/bin/nvim
            rm /tmp/nvim.tar.gz
            nvim --version | head -1
          user: "0"
          description: Install Neovim stable from GitHub releases (amd64 + arm64)