folke/sidekick.nvim
Your Neovim AI sidekick
What it solves
sidekick.nvim is a Neovim plugin that bridges the gap between AI-powered code suggestions and external AI command-line interface (CLI) tools. It allows developers to receive high-level refactoring suggestions (Next Edit Suggestions) and interact with AI assistants via an integrated terminal, all without leaving the editor.
How it works
The plugin operates through two primary mechanisms:
- Next Edit Suggestions (NES): It integrates with the Copilot LSP to fetch and visualize multi-line changes or refactorings. These suggestions are presented as rich, syntax-highlighted diffs that the user can navigate hunk-by-hunk and apply selectively.
- AI CLI Integration: It provides a lightweight terminal wrapper that allows users to run AI CLI tools (like Claude, Gemini, or Grok) in scratch windows. It automates the process of sending context—such as file content, cursor position, and diagnostics—directly into these CLI prompts.
Who it’s for
Neovim users who want a more integrated AI coding experience, specifically those using Copilot LSP and those who prefer using AI CLI tools over standard chat plugins.
Highlights
- Copilot NES Integration: Automatic, big-picture refactoring suggestions with granular word-level diffing.
- LSP Status Integration: Displays Copilot LSP request progress in the statusline.
- Context-Aware Prompts: Automatically bundles file paths, selections, and diagnostics into prompts for AI CLIs.
- Multiplexer Support: Integrates with
tmuxandzellijto keep AI CLI sessions persistent. - Prompt Library: Includes a predefined set of prompts for common tasks like fixing diagnostics or writing tests.
Related
- Project
- Project
- Project
- Project