How to Install#
Prerequisites#
Before starting, ensure you have the following installed:
Required (All Users)#
- Neovim v0.11+ (earlier versions may work but are untested)
- Git - for plugin management
- ripgrep (rg) - for Telescope file searching
- fd - for Telescope extended file finding capabilities
- A Nerd Font installed and configured in your terminal
Language-Specific#
For Java Development:
- JDK 11 or later - SDKMan is recommended for Java installation
For Rust Development:
- Rust toolchain - Install via
rustup - rust-analyzer - Will be auto-installed via Mason on first use
- codelldb - Will be auto-installed via Mason for debugging
First Time Setup#
- Clone this configuration to your Neovim config directory:
git clone https://github.com/sshaaf/neovim.git ~/.config/nvim- Open Neovim for the first time:
nvimLazy.nvim will automatically:
- Install all plugins
- Java: Install
nvim-jdtlsandjdtlslanguage server via Mason - Rust: Install
rustaceanvim,crates.nvim,rust-analyzer, andcodelldbvia Mason - Set up debugging support with nvim-dap for both languages
- Configure neotest for testing
Wait for all installations to complete (you’ll see progress notifications).
Verify installation by running:
:checkhealthAll checks should pass except for optional warnings (which can be ignored).
Optional: AI Assistant Setup#
This configuration includes CodeCompanion.nvim for AI-assisted coding using self-hosted LLMs via Ollama.
Installing Ollama#
Install Ollama (choose your platform):
macOS:
brew install ollamaLinux:
curl -fsSL https://ollama.com/install.sh | shOr download from: ollama.com
Start Ollama service:
ollama servePull a code model (recommended for Java development):
ollama pull deepseek-coder:6.7bAlternative models:
ollama pull qwen2.5-coder:7b- Excellent code understandingollama pull codellama:13b- Solid all-around modelollama pull starcoder2:15b- Good for completions
Verify Ollama is running:
curl http://localhost:11434/api/tags
Using the AI Assistant#
Once Ollama is running with a model downloaded:
<Space>ac- Open AI chat<Space>ae- Edit selection with AI (visual mode)<Space>ax- Explain code (visual mode)<Space>aa- Show AI actions menu
See Quick Reference for all AI keybindings.