term-configs

Neovim Configuration Installer

One-line installer for altjx/nvim-configs - a comprehensive Neovim setup based on NvChad.

Quick Install

curl -fsSL https://alton.sh/nvim | bash

What It Does

  1. Checks & Installs Neovim (≥ 0.10.0)
    • Adds neovim-ppa/stable repository
    • Installs or upgrades Neovim to latest stable
  2. Backs Up Existing Configs
    • ~/.config/nvim~/.config/nvim.backup_TIMESTAMP
    • ~/.local/share/nvim~/.local/share/nvim.backup_TIMESTAMP
    • ~/.local/state/nvim~/.local/state/nvim.backup_TIMESTAMP
    • Cleans ~/.cache/nvim
  3. Installs Prerequisites
    • git
    • fd-find
    • ripgrep
    • Node.js (LTS)
    • build-essential
  4. Clones Configuration
  5. Optional Ruby Tools (if Ruby detected)
    • ruby-lsp
    • rubocop

Requirements

Manual Installation

If you prefer to review the script first:

# Download and review
curl -fsSL https://alton.sh/nvim -o install.sh
less install.sh

# Make executable and run
chmod +x install.sh
./install.sh

After Installation

  1. Launch Neovim:
    nvim
    
  2. Lazy.nvim will automatically install all plugins (wait for completion)

  3. Restart Neovim after plugins finish installing

  4. Install a Nerd Font for proper icon display

Troubleshooting

Script fails with permission errors:

Old Neovim version persists:

Plugins won’t install:

Icons not displaying:

Restore old configuration:

# Find your backup
ls ~/.config/nvim.backup_*

# Restore it
rm -rf ~/.config/nvim
mv ~/.config/nvim.backup_TIMESTAMP ~/.config/nvim

# Restore data directory
rm -rf ~/.local/share/nvim
mv ~/.local/share/nvim.backup_TIMESTAMP ~/.local/share/nvim

Development

Edit the script and test locally:

# Test without running
bash -n install.sh

# Test in a container
docker run -it ubuntu:latest bash
# Then paste the curl command

License

MIT License - See nvim-configs LICENSE