aider.nvim  by joshuavial

Neovim plugin for interacting with Aider coding assistant

Created 2 years ago
540 stars

Top 58.7% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This Neovim plugin integrates the Aider AI coding assistant, providing a streamlined workflow for developers within the Vim environment. It allows users to open Aider in a terminal split, manage context by adding modified files, and configure custom keybindings for seamless interaction.

How It Works

The plugin leverages Neovim's terminal capabilities to launch and interact with the Aider CLI. It offers commands like AiderOpen to start an Aider session in a new split (vertical, horizontal, or editor) and AiderAddModifiedFiles to automatically include git-modified files in the AI's context. The plugin supports automatic buffer context management and provides default keybindings for common actions.

Quick Start & Requirements

  • Installation: Via package managers like packer.nvim, vim-plug, dein.vim, or lazy.nvim.
  • Prerequisites: Aider CLI installed and configured.
  • Configuration: Optional setup function for auto_manage_context, default_bindings, debug, ignore_buffers, and border styling.
  • Docs: README

Highlighted Details

  • Integrates Aider AI coding assistant directly into Neovim.
  • Supports opening Aider in various window types (vsplit, hsplit, editor).
  • Automatically adds git-modified files to Aider context.
  • Configurable context management and default keybindings.
  • Provides default keybindings via which-key for a guided experience.

Maintenance & Community

  • The project is maintained by joshuavial.
  • No specific community links (Discord/Slack) or roadmap are mentioned in the README.

Licensing & Compatibility

  • The README does not explicitly state a license.

Limitations & Caveats

  • The README notes that resizing Neovim splits can truncate Aider's output, with no easy workaround suggested without significant re-architecture.
  • A previously used keybinding <leader><space> is deprecated.
Health Check
Last Commit

4 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
9 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.