Development environment configuration for MacBook Pro M4 Max (36GB), optimized for Scala, Rust, Java, and Kotlin development.
| Component | Description |
|---|---|
| nvim | Neovim (LazyVim) with LSP for Scala, Rust, Java, Kotlin |
| kitty | Kitty terminal with Japanesque theme |
| fish | Fish shell with dev aliases and SDKMAN integration |
| agents | ai toolkit add-ons for agent CLIs: the ai-review / ai-verify skills (→ ~/.agents/skills, ~/.claude/skills) and opencode runner profiles (→ ~/.config/opencode/agents) |
| leetcode | Offline LeetCode runner for Scala 3 and Rust |
# Clone and apply (needs Homebrew; install.sh runs `brew bundle` from Brewfile, stows nvim/kitty/fish/agents, installs fish plugins)
git clone git@github.com:alnovis/dotfiles-mac.git ~/dotfiles-mac
cd ~/dotfiles-mac
./install.sh
# Set fish as default shell
echo /opt/homebrew/bin/fish | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/fishNote: Kitty config uses
/opt/homebrew/bin/fish(Apple Silicon). For Intel Macs change the path inkitty/kitty.conf.
Fish plugins (bobthefish theme, sdkman-for-fish) are managed by fisher and installed automatically by install.sh from fish/.config/fish/fish_plugins. If needed manually:
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher updateAdding a plugin with fisher install <repo> updates the stowed fish_plugins, so commit that file afterwards.
LSP servers (Metals, rust-analyzer, jdtls, kotlin-language-server) are installed automatically by Mason on first Neovim launch.
Formatters (scalafmt, ktlint, google-java-format) are also managed by Mason. The exception is rustfmt:
rustup component add rustfmtBuilt on LazyVim with the following customizations:
Theme: Kanagawa Wave
Language support:
| Language | LSP | Compile | Run | Test | Package |
|---|---|---|---|---|---|
| Scala | Metals | Space sc |
Space sr |
Space st |
— |
| Rust | rust-analyzer | Space rc |
Space rr |
Space rt |
— |
| Java (Maven) | jdtls | Space mc |
Space mr |
Space mt |
Space mp |
| Java (Gradle) | jdtls | Space gc |
Space gr |
Space gt |
— |
| Kotlin | kotlin-language-server | Space kc |
Space kr |
Space kt |
— |
| Docker | dockerfile LSP | — | — | — | — |
Plugins:
- Neo-tree — file explorer with git status (
Space e) - Snacks picker — fuzzy finder for files and text (LazyVim default)
- Gitsigns — inline git blame and hunk management
- Lazygit — terminal UI for git (
Space gg) - grug-far — project-wide search and replace (
Space sron a visual selection; in normal modeSpace sris sbt run) - Hardtime — vim motion trainer (
Space uhto toggle) - CodeCompanion — local AI via Ollama (
Space ac/ag/ai) - Diffview — git diff viewer (
Space gd/gh) - conform.nvim — auto-format on save (scalafmt, rustfmt, ktlint, google-java-format)
Key bindings:
- Custom hotkeys (save,
jk, move lines, clipboard, terminal, build, AI) are duplicated for the Cyrillic layout Ctrl+Click— go to definitionCtrl+Alt+Click— find usagesCtrl+Alt+Left/Right— navigate back/forwardCtrl+S— saveSpace e— toggle file treeSpace ff— find fileSpace /— live grepSpace gg— lazygitSpace lr— run LeetCode tests
Full keymaps reference: docs/nvim/keymaps.md