Overview
Avante.nvim provides AI-powered code assistance that integrates seamlessly into your Neovim workflow. Ask questions about your code, get intelligent suggestions, and apply AI-generated changes with a single command.Core Features
Ask Questions
Get intelligent answers about your code, architecture, or implementation details
Code Editing
AI suggests and applies targeted code improvements and refactoring
Chat Sessions
Maintain context across multiple interactions with persistent chat history
Visual Mode Editing
Select code visually and ask AI to refactor, improve, or explain it
Asking Questions
Ask the AI questions about your current code file:From Command Mode
With Keybindings
Press<Leader>aa (default) to open the sidebar and start asking:
- Sidebar opens on the right
- Type your question in the input area
- Press
<CR>to submit - AI responds with analysis and suggestions
Positioning the Sidebar
Control where the sidebar appears:Editing Code
Let AI refactor and improve your code:Visual Selection
1
Select code in visual mode
2
Trigger AvanteEdit
<Leader>ae (default)3
Review suggestions
The AI generates improved code. Review the diff in the sidebar.
4
Apply changes
- Press
ato apply at cursor - Press
Ato apply all suggestions - Press
co/ctto choose ours/theirs in conflicts
Example Editing Workflow
Chat Sessions
Maintain context across multiple interactions:Starting a Chat
:AvanteAsk which prompts immediately).
Creating New Chats
Managing History
Avante automatically saves your chat history:<Leader>ah- Select from history<Leader>an- New chat session
Adding Context
Help the AI understand your project better:Adding Files
Add files to the conversation context:Using Mentions
Reference specific context in your prompts:Project Instructions
Create anavante.md file in your project root:
One-Click Application
Quickly apply AI suggestions to your code:Apply at Cursor
Pressa in the sidebar to apply the suggestion under your cursor.
Apply All
PressA to apply all AI-suggested changes at once.
Diff Navigation
Navigate and resolve conflicts:Sidebar Navigation
Move between sidebar and code:Configuration
Customize AI assistance behavior:Tips for Better Results
Next Steps
Quick Start
Get started with Avante in minutes
Completion Sources
Use mentions, slash commands, and shortcuts
Diff Management
Master conflict resolution
Project Instructions
Guide AI with project context