|
| 1 | +## About Avante.nvim |
| 2 | + |
| 3 | +[avante.nvim](https://github.com/yetone/avante.nvim) is a Neovim plugin designed to emulate the behaviour of the Cursor AI IDE. It provides users with AI-driven code suggestions and the ability to apply these recommendations directly to their source files with minimal effort. |
| 4 | + |
| 5 | +With this the #28 become outdated |
| 6 | + |
| 7 | +## Key Bindings |
| 8 | + |
| 9 | +The following key bindings are available for use with `avante.nvim`: |
| 10 | + |
| 11 | +| Key Binding | Description | |
| 12 | +| ----------------------------------------- | -------------------------------------------- | |
| 13 | +| <kbd>Leader</kbd><kbd>a</kbd><kbd>a</kbd> | show sidebar | |
| 14 | +| <kbd>Leader</kbd><kbd>a</kbd><kbd>r</kbd> | refresh sidebar | |
| 15 | +| <kbd>Leader</kbd><kbd>a</kbd><kbd>f</kbd> | switch sidebar focus | |
| 16 | +| <kbd>Leader</kbd><kbd>a</kbd><kbd>e</kbd> | edit selected blocks | |
| 17 | +| <kbd>c</kbd><kbd>o</kbd> | choose ours | |
| 18 | +| <kbd>c</kbd><kbd>t</kbd> | choose theirs | |
| 19 | +| <kbd>c</kbd><kbd>a</kbd> | choose all theirs | |
| 20 | +| <kbd>c</kbd><kbd>0</kbd> | choose none | |
| 21 | +| <kbd>c</kbd><kbd>b</kbd> | choose both | |
| 22 | +| <kbd>c</kbd><kbd>c</kbd> | choose cursor | |
| 23 | +| <kbd>]</kbd><kbd>x</kbd> | move to previous conflict | |
| 24 | +| <kbd>[</kbd><kbd>x</kbd> | move to next conflict | |
| 25 | +| <kbd>[</kbd><kbd>[</kbd> | jump to previous codeblocks (results window) | |
| 26 | +| <kbd>]</kbd><kbd>]</kbd> | jump to next codeblocks (results windows) | |
| 27 | + |
| 28 | +> [!NOTE] |
| 29 | +> |
| 30 | +> If you are using `lazy.nvim`, then all keymap here will be safely set, meaning if `<leader>aa` is already binded, then avante.nvim won't bind this mapping. |
| 31 | +> In this case, user will be responsible for setting up their own. See [notes on keymaps](https://github.com/yetone/avante.nvim/wiki#keymaps-and-api-i-guess) for more details. |
| 32 | +
|
| 33 | +## Commands |
| 34 | + |
| 35 | +| Command | Description | Examples | |
| 36 | +| ---------------------------------- | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | |
| 37 | +| `:AvanteAsk [question] [position]` | Ask AI about your code. Optional `position` set window position and `ask` enable/disable direct asking mode | `:AvanteAsk position=right Refactor this code here` | |
| 38 | +| `:AvanteBuild` | Build dependencies for the project | |
| 39 | +| `:AvanteChat` | Start a chat session with AI about your codebase. Default is `ask`=false | |
| 40 | +| `:AvanteEdit` | Edit the selected code blocks | |
| 41 | +| `:AvanteFocus` | Switch focus to/from the sidebar | |
| 42 | +| `:AvanteRefresh` | Refresh all Avante windows | |
| 43 | +| `:AvanteSwitchProvider` | Switch AI provider (e.g. openai) | |
| 44 | +| `:AvanteShowRepoMap` | Show repo map for project's structure | |
| 45 | +| `:AvanteToggle` | Toggle the Avante sidebar | |
| 46 | + |
| 47 | +## Highlight Groups |
| 48 | + |
| 49 | +| Highlight Group | Description | Notes | |
| 50 | +| --------------------------- | --------------------------------------------- | -------------------------------------------- | |
| 51 | +| AvanteTitle | Title | | |
| 52 | +| AvanteReversedTitle | Used for rounded border | | |
| 53 | +| AvanteSubtitle | Selected code title | | |
| 54 | +| AvanteReversedSubtitle | Used for rounded border | | |
| 55 | +| AvanteThirdTitle | Prompt title | | |
| 56 | +| AvanteReversedThirdTitle | Used for rounded border | | |
| 57 | +| AvanteConflictCurrent | Current conflict highlight | Default to `Config.highlights.diff.current` | |
| 58 | +| AvanteConflictIncoming | Incoming conflict highlight | Default to `Config.highlights.diff.incoming` | |
| 59 | +| AvanteConflictCurrentLabel | Current conflict label highlight | Default to shade of `AvanteConflictCurrent` | |
| 60 | +| AvanteConflictIncomingLabel | Incoming conflict label highlight | Default to shade of `AvanteConflictIncoming` | |
| 61 | +| AvantePopupHint | Usage hints in popup menus | | |
| 62 | +| AvanteInlineHint | The end-of-line hint displayed in visual mode | | |
| 63 | + |
| 64 | +See [highlights.lua](./lua/avante/highlights.lua) for more information |
| 65 | + |
0 commit comments