Install development dependencies for Linux, macOS, and Windows
mainTo develop for claude-code.nvim, you must install Neovim (0.10.0+), Git, Make, LuaRocks, stylua (formatter), and luacheck (linter). Optional but recommended tools include ripgrep and fd.
Ubuntu/Debian
# Install Neovim (from PPA for latest version)
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
# Install luarocks and other dependencies
sudo apt-get install luarocks ripgrep fd-find git make
# Install luacheck
sudo luarocks install luacheck
# Install stylua
curl -L -o stylua.zip $(curl -s https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest | grep -o "https://.*stylua-linux-x86_64.zip")
unzip stylua.zip
chmod +x stylua
sudo mv stylua /usr/local/bin/Arch Linux
# Install dependencies
sudo pacman -S neovim luarocks ripgrep fd git make
# Install luacheck
sudo luarocks install luacheck
# Install stylua (from AUR)
yay -S styluaFedora
# Install dependencies
sudo dnf install neovim luarocks ripgrep fd-find git make
# Install luacheck
sudo luarocks install luacheck
# Install stylua
curl -L -o stylua.zip $(curl -s https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest | grep -o "https://.*stylua-linux-x86_64.zip")
unzip stylua.zip
chmod +x stylua
sudo mv stylua /usr/local/bin/macOS
# Install Homebrew if not already installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install dependencies
brew install neovim luarocks ripgrep fd git make
# Install luacheck
luarocks install luacheck
# Install stylua
brew install styluaWindows (Scoop)
# Install scoop if not already installed
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
# Install dependencies
scoop install neovim git make ripgrep fd
# Install luarocks
scoop install luarocks
# Install luacheck
luarocks install luacheck
# Install stylua
scoop install styluaWindows (Chocolatey)
# Install chocolatey if not already installed
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies
choco install neovim git make ripgrep fd
# Install luarocks
choco install luarocks
# Install luacheck
luarocks install luacheck
# Install stylua (download from GitHub)
# Visit https://github.com/JohnnyMorganz/StyLua/releases