Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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

  1. Enable avante.nvim in lua/community.lua .

  2. Customize configuration (e.g., LLM provider) in lua/plugins/avante.lua if needed.

  3. Export API keys. Taking Gemini as an example, exporting either GEMINI_API_KEY or AVANTE_GEMINI_API_KEY (preferred) works. To do this in the fish shell, use

    set -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",
    }
  4. If you run into errors saying “cannot make changes. modifiable is off” when using the sidebar, run :set modifiable to toggle on modifiable.

References