#!/bin/bash

# Neovim Installation Script
# Installs Neovim and essential dependencies

# Install Neovim from official repositories
yay -S --noconfirm --needed neovim

# Install Node.js and npm for Neovim plugins that require it
yay -S --noconfirm --needed nodejs npm

# Install Python and pip for Python-based plugins
yay -S --noconfirm --needed python python-pip python-pynvim

# Install clipboard utilities for system clipboard integration
yay -S --noconfirm --needed wl-clipboard xclip

# Install ripgrep, fd, and other search tools commonly used by Neovim plugins
yay -S --noconfirm --needed ripgrep fd

# Install tree-sitter for syntax highlighting
yay -S --noconfirm --needed tree-sitter

# Install language servers for common languages
yay -S --noconfirm --needed \
  lua-language-server \
  bash-language-server \
  typescript-language-server

echo "✓ Neovim and essential dependencies installed successfully!"
echo "  You can now run 'nvim' to start Neovim"
echo "  Consider installing a Neovim configuration like LazyVim or AstroNvim for enhanced functionality"