Sign inSign up

sbx/neovim-kit:20260820-60c747130ba7b8355c692757d17c99ef0d478516

Manifest digest

sha256:ea0e2fcea5e3fc17d6bc1d61f914e9f1598cab61daf3da242d311b39e271f15e

Last pushed

about 1 month by dockerpublicbot

Type

Sandbox Kit

Manifest digest

sha256:ea0e2fcea5e3fc17d6bc1d61f914e9f1598cab61daf3da242d311b39e271f15e

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)