Solutions for common setup and configuration issues
# Run comprehensive health check
nvim +checkhealth
brew doctor
# Individual component checks
brew doctor # Homebrew issues
nvim +checkhealth # Neovim configuration
tmux info # tmux server status
echo $SHELL # Current shell
Cannot install in Homebrew on ARM processor
# Solution: Ensure correct architecture
arch -arm64 brew install <package> # Apple Silicon
arch -x86_64 brew install <package> # Intel/Rosetta
Permission denied errors
# Fix Homebrew permissions
sudo chown -R $(whoami) $(brew --prefix)/*
brew doctor
No formulae found
# Update Homebrew
brew update
brew tap homebrew/core
Command not found after installation
# Reload shell configuration
exec zsh -l
# Verify PATH
echo $PATH | tr ':' '\n'
# Check shell
echo $SHELL
which zsh
Zinit not loading
# Verify installation
ls -la ~/.local/share/zinit
# Reinstall if needed
rm -rf ~/.local/share/zinit
exec zsh # Will auto-reinstall
# Check plugin loading
zinit status
Plugins not installing
# In Neovim
:Lazy sync
:Lazy clean
:Lazy restore
# Clear cache
rm -rf ~/.local/share/nvim
rm -rf ~/.cache/nvim
# In Neovim
:LspInfo
:Mason
:MasonInstallAll
# Manual installation
:MasonInstall pyright lua-language-server
# In Neovim
:TSUpdate
:TSInstall! all
# Kill all tmux sessions
tmux kill-server
# Start fresh
tmux new -s main
# Verify font installation
fc-list | grep -i "nerd"
# Reinstall fonts
brew reinstall --cask font-fira-code-nerd-font
brew reinstall --cask font-jetbrains-mono-nerd-font
# Clear font cache
sudo atsutil databases -remove
# Check terminal capabilities
echo $TERM
infocmp $TERM | grep -E "colors|RGB"
# Set correct TERM
export TERM=xterm-256color # or alacritty
# Profile zsh startup
time zsh -i -c exit
# Detailed profiling
zsh -xvf 2>&1 | ts -i "%.s" > /tmp/zsh-startup.log
# Check for slow plugins
zinit times
" Profile startup
:StartupTime
" Disable plugins temporarily
:Lazy profile
" Check specific plugin
:Lazy load <plugin-name>
# Identify culprit
htop
# Common causes:
# - Language servers
# - File watchers
# - Background indexing
# Initialize git in dotfiles
cd ~/.dotfiles
git init
git remote add origin https://github.com/IllyaStarikov/.dotfiles.git
# Verify installation
which delta
# Check git config
git config --get core.pager
# Reinstall
brew reinstall git-delta
# Manual theme switch
~/.dotfiles/src/theme/switch-theme.sh
# Check theme files
ls -la ~/.config/alacritty/theme.toml
ls -la ~/.config/tmux/theme.conf
# Reset theme cache
rm -rf ~/.cache/theme
# Force reload all components
killall tmux
theme
# In Neovim
:source $MYVIMRC
# Check DNS
scutil --dns
# Use alternative DNS
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4
# Reset DNS cache
sudo dscacheutil -flushcache
# Update certificates
brew install ca-certificates
brew link --force ca-certificates
# For Python
pip install --upgrade certifi
# Backup current config
mv ~/.dotfiles ~/.dotfiles.backup
# Fresh installation
git clone https://github.com/IllyaStarikov/.dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./src/setup/install.sh
# Reset Neovim
rm -rf ~/.config/nvim ~/.local/share/nvim ~/.local/state/nvim
cd ~/.dotfiles && ./src/setup/symlinks.sh
# Reset tmux
rm -rf ~/.tmux/plugins
tmux kill-server
cd ~/.dotfiles && ./src/setup/symlinks.sh
# Reset shell
rm ~/.zshrc ~/.oh-my-zsh
cd ~/.dotfiles && ./src/setup/install.sh
# Shell debugging
set -x # Enable
set +x # Disable
# Neovim debugging
nvim -V9nvim.log
# Git debugging
GIT_TRACE=1 git <command>
When reporting issues, include:
# System info
sw_vers
uname -a
arch
# Tool versions
brew --version
nvim --version
tmux -V
zsh --version
# Configuration
echo $SHELL
echo $PATH