Overview
sidekick.nvim is an AI assistant plugin for Neovim that brings Copilot LSP’s Next Edit Suggestions together with an integrated AI CLI terminal. It enables rich diff previews, hunk-by-hunk navigation, and seamless interaction with multiple AI command-line tools without leaving the editor.
Key Features
- Next Edit Suggestions (NES): Automatically requests larger, multi-line refactoring or fix suggestions and presents them as visual diffs that can be reviewed and applied incrementally.
- AI CLI Integration: Built-in terminal connects to Claude, Gemini, Copilot CLI, Codex, and other tools, supporting session persistence and context injection (file content, cursor position, diagnostics).
- UI & Navigation: Provides diff highlighting, hunk navigation, statusline integration, and configurable keymaps for a smooth in-editor AI workflow.
Use Cases
- Large-scale edits and refactors: Get holistic edit suggestions across functions or files, review them, and apply safely.
- Interactive AI assistance: Chat with AI tools from inside Neovim to generate tests, explain code, or fix issues.
- Workflow augmentation: Combine prompt libraries and status integrations to improve code review and documentation workflows.
Technical Details
- Implemented in Lua for the Neovim ecosystem; requires Neovim >= 0.11.2.
- Works with Copilot LSP to power NES; LSP can be installed via Mason or other package managers.
- Extensible API and configuration, integrates with related plugins such as snacks.nvim and nvim-treesitter.