opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

avante.nvim brings Cursor-like AI code assistance to Neovim
GitHub RepoImpressions2

Project Description

View on GitHub

Avante.nvim: Cursor-Like AI Code Assistance, Now in Neovim

If you've been eyeing Cursor's AI-powered code editing but can't leave Neovim, there's finally a native solution that feels right at home. Avante.nvim brings a similar AI assistant experience directly into your editor, letting you chat with a model, apply diffs, and get inline suggestions without leaving your terminal.

What It Does

Avante.nvim is a Neovim plugin that adds an AI copilot to your workflow. Think of it as a conversational AI sidekick that understands your code. You can:

  • Ask questions about your codebase in a side panel
  • Get inline suggestions and code completions
  • Apply changes directly as diffs (accept or reject per hunk)
  • Use models like Claude, GPT-4, or local LLMs through Ollama

The key difference from something like Copilot? Avante.nvim is more interactive. You have a full back and forth conversation, not just single shot completions.

Why It's Cool

What makes Avante.nvim stand out is how deeply it integrates with Neovim's existing patterns.

It speaks your file structure. The plugin automatically includes your current buffer's context, file type, and relevant project files into the prompt. So when you ask "refactor this function", the AI knows exactly what you're working on.

Diff based editing is intuitive. Instead of just inserting code, Avante.nvim shows you proposed changes as hunks you can accept or reject. This feels like reviewing a PR, not blindly pasting AI output.

It's model agnostic. You can swap between OpenAI, Anthropic, or local models without changing your workflow. This is huge for privacy conscious devs who want to keep code on their machine.

The UI respects Neovim. It uses your existing windows, keybindings, and color scheme. There's no jarring external UI or electron window. Everything works through :AvanteAsk or a sidebar you toggle.

How to Try It

Getting started is straightforward if you use a plugin manager like lazy.nvim.

-- lazy.nvim example
{
  "yetone/avante.nvim",
  config = function()
    require("avante").setup({
      provider = "claude", -- or "openai", "ollama"
      -- optional: configure API keys in env vars
    })
  end,
}

You'll need an API key for cloud models or have Ollama running locally. Then just:

:AvanteAsk "Explain this file"

Or open the sidebar with :AvanteSidebar for a persistent chat.

The repo has detailed docs, including how to set up custom prompts and keymaps: github.com/yetone/avante.nvim

Final Thoughts

Avante.nvim isn't trying to replace Copilot or GitHub's tools. It's for people who want a conversational assistant that feels native to Neovim's ethos. The diff approval flow alone makes me more careful about AI generated code, which is a good thing.

If you already live in the terminal and want AI help that doesn't fight your editor, this is worth a weekend try. Just don't expect it to write your whole app for you. It's a pair programmer, not a replacement.


by @githubprojects

Back to Projects
Project ID: b78a9b47-9ea5-438f-bf89-ee746a2b3f19Last updated: July 15, 2026 at 02:45 AM