Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
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.
Installation and Configuration via AstroNvim¶
Enable avante.nvim in lua/community.lua .
Customize configuration (e.g., LLM provider) in lua
/plugins /avante .lua if needed. Export API keys. Taking Gemini as an example, exporting either
GEMINI_API_KEYorAVANTE_GEMINI_API_KEY(preferred) works. To do this in the fish shell, useset -Ux GEMINI_API_KEY "your_api_key_here"or
set -Ux AVANTE_GEMINI_API_KEY "your_api_key_here". If you don’t want like exporting environment variables for API keys (due to security concerns), you can manage your API keys using a password manager (e.g., pass) and have the following configuration in
lua/plugins /avante .lua . gemini = { api_key_name = "cmd:pass show google/gemini-api", }If you run into errors saying “cannot make changes. modifiable is off” when using the sidebar, run
:set modifiableto toggle on modifiable.