Install
git clone https://github.com/folke/sidekick.nvimInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →🤖 sidekick.nvim
sidekick.nvim is your Neovim AI sidekick that integrates Copilot LSP's "Next Edit Suggestions" with a built-in terminal for any AI CLI. Review and apply diffs, chat with AI assistants, and streamline your coding, without leaving your editor.
✨ Features
🤖 Next Edit Suggestions (NES) powered by Copilot LSP
- 🪄 Automatic Suggestions: Fetches suggestions automatically when you pause typing or move the cursor.
- 🎨 Rich Diffs: Visualizes changes with inline and block-level diffs, featuring Treesitter-based syntax highlighting with granular diffing down to the word or character level.
- 🧭 Hunk-by-Hunk Navigation: Jump through edits to review them one by one before applying.
- 📊 Statusline Integration: Shows Copilot LSP's status, request progress, and preview text in your statusline.
💬 Integrated AI CLI Terminal
- 🚀 Direct Access to AI CLIs: Interact with your favorite AI command-line tools without leaving Neovim.
- 📦 Pre-configured for Popular Tools: Out-of-the-box support for Claude, Gemini, Grok, Codex, Copilot CLI, and more.
- ✨ Context-Aware Prompts: Automatically include file content, cursor position, and diagnostics in your prompts.
- 📝 Prompt Library: A library of pre-defined prompts for common tasks like explaining code, fixing issues, or writing tests.
- 🔄 Session Persistence: Keep your CLI sessions alive with
tmuxandzellijintegration. - 📂 Automatic File Watching: Automatically reloads files in Neovim when they are modified by AI tools.
🔌 Extensible and Customizable
- ⚙️ Flexible Configuration: Fine-tune every aspect of the plugin to your liking.
- 🧩 Plugin-Friendly API: A rich API for integrating with other plugins and building custom workflows.
- 🎨 Customizable UI: Change the appearance of diffs, signs, and more.
📋 Requirements
- Neovim
>= 0.11.2or newer - The official copilot-language-server LSP server,
enabled with
vim.lsp.enable. Can be installed in multiple ways:- install using
npmor your OS's package manager - install with mason-lspconfig.nvim
- copilot.lua and copilot.vim both bundle the LSP Server in their plugin.
- install using
- A working
lsp/copilot.luaconfiguration.- TIP: Included in nvim-lspconfig
- snacks.nvim for better prompt/tool selection (optional)
- nvim-treesitter-textobjects (
mainbranch) for{function}and{class}context variables (optional) - AI cli tools, such as Codex, Claude, Copilot, Gemini, … (optional) see the 🤖 AI CLI Integration section for details.
- lsof and ps are used on Unix-like systems to detect running AI CLI tool sessions. (optional, but recommended)
🚀 Quick Start
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro,…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…