Repolode
folke

folke/sidekick.nvim

A Neovim plugin that combines Copilot LSP's Next Edit Suggestions with a built-in terminal for running AI CLI tools.

Open-source alternative to:GitHub Copilot

Stars
2,807
Forks
176
Open issues
57
Last commit
2 months ago

What is it?

sidekick.nvim brings AI assistance into Neovim in two parts. The first is Next Edit Suggestions (NES) powered by the official copilot-language-server LSP: after you pause typing or move the cursor, it proposes multi-line or file-wide edits, shows them as inline and block diffs with word- or character-level granularity, and lets you step through hunks before applying them.

The second part is an integrated terminal for AI command-line tools. It has preset configurations for Claude, Gemini, Codex, Copilot CLI, Aider, OpenCode and others, and can send the current file, selection, cursor position, diagnostics or Tree-sitter function and class context into a prompt. A built-in prompt library covers tasks such as explaining code, fixing diagnostics and writing tests. Sessions can persist through tmux or zellij, and files changed by the AI tools are reloaded automatically.

Key features

  • 01Automatic Next Edit Suggestions from Copilot LSP after typing pauses or cursor moves.
  • 02Inline and block diffs with Treesitter syntax highlighting and word or character-level detail.
  • 03Hunk-by-hunk navigation to review edits before applying them.
  • 04Built-in terminal with presets for Claude, Gemini, Codex, Copilot CLI and other AI CLIs.
  • 05Context variables for file, selection, cursor position, diagnostics and functions in prompts.
  • 06Session persistence via tmux or zellij, plus automatic reloading of files changed by AI tools.

Use cases

  • Reviewing and applying multi-line refactorings suggested while editing in Neovim.
  • Sending the current file or a visual selection to Claude Code or Gemini CLI without leaving the editor.
  • Asking an AI assistant to explain, fix or write tests for the function under the cursor.
  • Keeping long-running AI CLI sessions alive across Neovim restarts using tmux or zellij.

Quick start

  1. 1

    Install the plugin with your package manager (lazy.nvim example in README)

  2. 2

    Enable the Copilot LSP server with vim.lsp.enable (install copilot-language-server via npm)

    npm install -g @github/copilot-language-server
  3. 3

    Check health in Neovim

    :checkhealth sidekick
  4. 4

    Sign in to Copilot in Neovim

    :LspCopilotSignIn

Things to know

  • Requires Neovim 0.11.2 or newer and a Copilot subscription for Next Edit Suggestions.
  • Needs a separately installed copilot-language-server LSP and a working lsp/copilot.lua configuration.

In collections

Topics

FAQ

What is sidekick.nvim?
A Neovim plugin that combines Copilot LSP's Next Edit Suggestions with a built-in terminal for running AI CLI tools. sidekick.nvim brings AI assistance into Neovim in two parts. The first is Next Edit Suggestions (NES) powered by the official copilot-language-server LSP: after you pause typing or move the cursor, it proposes multi-line or file-wide edits, shows them as inline and block diffs with word- or character-level granularity, and lets you step through hunks before applying them.
Is sidekick.nvim free to use? What license does it have?
sidekick.nvim is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is sidekick.nvim still maintained?
Updated within 6 months. The last commit to sidekick.nvim was on Sep 8, 2026.
What can I use sidekick.nvim for?
Reviewing and applying multi-line refactorings suggested while editing in Neovim. Sending the current file or a visual selection to Claude Code or Gemini CLI without leaving the editor. Asking an AI assistant to explain, fix or write tests for the function under the cursor. Keeping long-running AI CLI sessions alive across Neovim restarts using tmux or zellij.
How do I install sidekick.nvim?
Install the plugin with your package manager (lazy.nvim example in README) Enable the Copilot LSP server with vim.lsp.enable (install copilot-language-server via npm): npm install -g @github/copilot-language-server Check health in Neovim: :checkhealth sidekick Sign in to Copilot in Neovim: :LspCopilotSignIn
Where can I get sidekick.nvim?
The source code and installation instructions are on GitHub: https://github.com/folke/sidekick.nvim

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects