Skip to content

Pereira-Lucas/avante.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avante.nvim

avante.nvim is a Neovim plugin designed to emulate the behavior of the Cursor AI IDE, providing users with AI-driven code suggestions and the ability to apply these recommendations directly to their source files with minimal effort.

Warning: This plugin is still in a very early stage of development, so please be aware that the current code is very messy and unstable, and problems are likely to occur.

Features

  • AI-Powered Code Assistance: Interact with AI to ask questions about your current code file and receive intelligent suggestions for improvement or modification.
  • One-Click Application: Quickly apply the AI's suggested changes to your source code with a single command, streamlining the editing process and saving time.

Installation

Install avante.nvim using lazy.nvim:

{
  "yetone/avante.nvim",
  event = "VeryLazy",
  config = function()
      require("avante").setup({})
  end,
  dependencies = {
    "nvim-tree/nvim-web-devicons",
    {
      "grapp-dev/nui-components.nvim",
      dependencies = {
        "MunifTanjim/nui.nvim"
      }
    },
    "nvim-lua/plenary.nvim",
    "MeanderingProgrammer/render-markdown.nvim",
  },
}

Usage

Given its early stage, avante.nvim currently supports the following basic functionalities:

  1. Set ANTHROPIC_API_KEY environment variable.
export ANTHROPIC_API=your-api-key
  1. Open a code file in Neovim.
  2. Use the :AvanteAsk command to query the AI about the code.
  3. Review the AI's suggestions.
  4. Apply the recommended changes directly to your code with a simple command or key binding.

Note: The plugin is still under active development, and both its functionality and interface are subject to significant changes. Expect some rough edges and instability as the project evolves.

Key Bindings

The following key bindings are available for use with avante.nvim:

  • Leaderaa — show sidebar
  • co — choose ours
  • ct — choose theirs
  • cb — choose both
  • c0 — choose none
  • ]x — move to previous conflict
  • [x — move to next conflict

Roadmap

  • Enhanced AI Interactions: Improve the depth of AI analysis and recommendations for more complex coding scenarios.
  • Stability Improvements: Refactor and optimize the codebase to enhance the stability and reliability of the plugin.
  • Expanded Features: Introduce additional customization options and new features to support a wider range of coding tasks.

Contributing

Contributions to avante.nvim are welcome! If you're interested in helping out, please feel free to submit pull requests or open issues. Before contributing, ensure that your code has been thoroughly tested.

License

avante.nvim is licensed under the MIT License. For more details, please refer to the LICENSE file.

About

Use your Neovim like using Cursor AI IDE!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 75.0%
  • Rust 18.5%
  • Jinja 2.9%
  • Scheme 1.4%
  • PowerShell 0.9%
  • Makefile 0.8%
  • Other 0.5%