Default Keybindings
Global Actions
Sidebar Actions
File Management
Suggestion Actions
Diff Navigation
Jump Actions
Submit/Cancel Actions
Confirm Window Actions
Customizing Keybindings
All keybindings can be customized through themappings configuration:
Safe Keymap Setting
Avante.nvim uses safe keymap setting by default. If a keybinding is already in use, Avante will not override it.
auto_set_keymaps = false, you’ll need to manually set all keybindings.
Manual Keybinding Setup
If you disable automatic keymaps, set them manually:Sidebar-Specific Keybindings
Some keybindings are only active when the sidebar is open:table | nil
Close sidebar from input window:
table | nil
Toggle code window from input:
Conflict Mapping Customization
Customize diff conflict resolution mappings:Timeout Override
Avoid operator-pending mode issues with diff mappings:Prompt Logger Keybindings
Navigate through prompt logs:Example: Vim-Style Keybindings
Use Vim-style hjkl for navigation:Example: Minimal Keybindings
Minimal setup with only essential keybindings:Integration with Other Plugins
NvimTree Integration
Add files from NvimTree to Avante:Commands vs Keybindings
All keybindings have corresponding commands:
Use commands directly if you prefer: