Skip to main content
Avante.nvim provides extensive window customization options to match your workflow and preferences.

Window Position

'right' | 'left' | 'top' | 'bottom' | 'smart'
default:"right"
Position of the sidebar window:
  • right - Right side of the screen
  • left - Left side of the screen
  • top - Top of the screen (horizontal layout)
  • bottom - Bottom of the screen (horizontal layout)
  • smart - Automatically choose best position

Window Dimensions

number
default:"30"
Width of the sidebar as percentage of available width (for vertical layouts)
number
default:"30"
Height of the sidebar as percentage of available height (for horizontal layouts)

Text Wrapping

boolean
default:"true"
Enable text wrapping in windows (similar to vim.o.wrap)

Fill Characters

string
default:"eob: "
Characters used to fill empty lines (end of buffer)
Customize the sidebar header appearance:
boolean
default:"true"
Enable or disable the sidebar header
'left' | 'center' | 'right'
default:"center"
Alignment of the header title
boolean
default:"true"
Use rounded borders for the header
boolean
default:"false"
Include the current model name in the header

Example: Minimal Header

Spinner Animation

Customize the loading spinner characters:
string[]
Spinner frames shown while editing code
string[]
Spinner frames shown while generating responses
string[]
Spinner frames shown while AI is thinking

Example: Simple Spinner

Input Window

string
default:"> "
Prefix shown in the input window
number
default:"8"
Height of the input window in vertical layout (number of lines)

Selected Files Window

number
default:"6"
Maximum height of the selected files window

Edit Window

string | table
default:"{ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }"
Border style for the edit window
boolean
default:"true"
Automatically enter insert mode when opening edit window

Border Styles

Available border styles:
  • "rounded" - Rounded corners
  • "single" - Single line border
  • "double" - Double line border
  • "solid" - Solid border
  • "shadow" - Shadow effect
  • { " ", " ", " ", " ", " ", " ", " ", " " } - Custom characters (top, right, bottom, left, topleft, topright, bottomright, bottomleft)

Ask Window

boolean
default:"false"
Open the Ask prompt in a floating window instead of sidebar
string | table
default:"{ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' }"
Border style for the ask window
boolean
default:"true"
Automatically enter insert mode when opening ask window
'ours' | 'theirs'
default:"ours"
Which diff to focus after applying changes

Complete Window Configuration Example

For best results with Avante windows, set these Neovim options:

Layout Examples

Bottom Panel

Window Focus Behavior

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

Tips

Use position = "right" with width = 30 for a comfortable vertical layout that doesn’t take too much screen space.
For ultrawide monitors, increase width to 40-50 to take advantage of extra screen space.
Set wrap = true to avoid horizontal scrolling in the sidebar, especially useful for longer AI responses.
Use sidebar_header.include_model = true if you frequently switch between different AI models.