Skip to main content
Avante.nvim’s behavior settings control how the plugin interacts with your code, handles suggestions, and manages various features.

Auto-Focus Settings

boolean
default:"true"
Automatically focus the sidebar when opening Avante
boolean
default:"false"
Automatically focus the diff view when changes are applied

Auto-Suggestions

boolean
default:"false"
Enable automatic code suggestions (experimental)
boolean
default:"false"
Respect gitignore patterns when generating auto-suggestions
number
default:"600"
Debounce time in milliseconds before triggering auto-suggestions
number
default:"600"
Throttle time in milliseconds for auto-suggestions
Auto-suggestions are high-frequency operations and can be expensive. Avoid using expensive providers like Copilot for auto-suggestions. Consider using a separate, cheaper provider via auto_suggestions_provider.

Keymap Settings

boolean
default:"true"
Automatically set keymaps for Avante actions. Only sets keymaps that aren’t already bound.

Diff Handling

boolean
default:"false"
Automatically apply diff after LLM response (similar to Cursor’s behavior)
boolean
default:"true"
Remove unchanged lines when applying code blocks to reduce clutter
boolean
default:"false"
Automatically jump to the result buffer after generation completes

Diff Configuration

boolean
default:"true"
Automatically jump to diff conflicts
number
default:"500"
Override timeoutlen while hovering over diff to avoid operator-pending mode. Set to -1 to disable.

Highlight Groups

boolean
default:"true"
Automatically set highlight groups for Avante windows

Clipboard Support

boolean
default:"false"
Enable pasting images from clipboard (requires img-clip.nvim)
This is automatically enabled if img-clip.nvim is installed.

Token Counting

boolean
default:"true"
Enable token counting for requests and responses

File Management

boolean
default:"true"
Automatically add the current file when opening a new chat
boolean
default:"false"
Use current working directory as project root instead of detecting via LSP
boolean
default:"false"
Allow AI to access files that are in .gitignore

Tool Permissions

boolean | string[]
default:"true"
Control tool permission prompts:
  • true - Auto-approve all tools (no prompts)
  • false - Show permission prompts for all tools
  • string[] - Auto-approve specific tools only

Diagnostics

boolean
default:"true"
Automatically check and include diagnostics in AI context

Fast Apply

boolean
default:"false"
Enable Fast Apply feature for instant code edits using specialized models
See the Fast Apply guide for more information on this feature.

Git Integration

boolean
default:"false"
Add a “Generated-by: provider/model” line to git commit messages

Confirmation UI Style

'popup' | 'inline_buttons'
default:"inline_buttons"
Style of confirmation UI:
  • popup - Original floating window with yes/all/no buttons
  • inline_buttons - Inline buttons in the sidebar

ACP Agent Settings

boolean
default:"true"
Automatically open files and navigate to lines when ACP agent makes edits

Selection Settings

boolean
default:"true"
Enable selection mode for asking questions about selected code
'delayed' | 'immediate' | 'none'
default:"delayed"
When to show keymap hints for selection mode

History Settings

number
default:"4096"
Maximum tokens to keep in chat history
number | nil
default:"nil"
Number of history entries to carry over to new chats
string
Path where chat history is stored

Prompt Logger

boolean
default:"true"
Enable logging prompts to disk for debugging/replay
string
Directory where prompt logs are saved
number
default:"100"
Maximum number of prompt log entries to keep

Complete Behavior Configuration Example

Tips

Start with auto_suggestions = false until you’re comfortable with the plugin, as auto-suggestions can be distracting initially.
Enable minimize_diff = true to reduce clutter when reviewing AI-generated changes.
Use auto_approve_tool_permissions = false in sensitive environments where you want explicit control over what the AI can do.
Set enable_fastapply = true with Morph provider for instant code edits without delays.