gemini.nvim  by kiddos

Google Gemini API integration for Neovim

Created 2 years ago
251 stars

Top 99.8% on SourcePulse

GitHubView on GitHub
Project Summary

This Neovim plugin provides direct bindings to Google's Gemini API, enabling advanced AI-powered coding assistance within the editor. It targets Neovim users seeking to enhance their development workflow through features like intelligent code completion, explanation, test generation, and code review, ultimately boosting productivity and code quality.

How It Works

The plugin interfaces with Google's Gemini API to offer a suite of AI-driven functionalities. Its core approach involves defining specific prompts and configurations for various coding tasks, allowing users to leverage Gemini models directly within their Neovim environment. This integration enables features such as real-time code completion, in-depth code explanations, automated unit test generation, and comprehensive code reviews, all managed through Neovim's familiar interface.

Quick Start & Requirements

Installation is supported via popular Neovim package managers like lazy.nvim and packer.nvim. A critical prerequisite is setting the GEMINI_API_KEY environment variable with your Google API key. The plugin requires Neovim and curl for API key setup.

-- Example for lazy.nvim
{
  'kiddos/gemini.nvim',
  opts = {}
}

-- Example for packer.nvim
use { 'kiddos/gemini.nvim', opts = {} }

Highlighted Details

  • Code Completion: Offers intelligent code suggestions directly in the editor.
  • Code Explanation: Provides detailed explanations for selected code snippets.
  • Unit Test Generation: Automates the creation of unit tests for code.
  • Code Review: Performs thorough code reviews with detailed comments.
  • Hints & Chat: Includes AI-powered hints and a chat interface for interactive assistance.
  • Configurable: Extensive settings allow customization of models, prompts, and behavior for various features.

Maintenance & Community

Information regarding maintainers, community channels (like Discord/Slack), or project roadmaps was not present in the provided README snippet.

Licensing & Compatibility

The license type and any compatibility notes for commercial use or closed-source linking were not specified in the provided README snippet.

Limitations & Caveats

The plugin's functionality is entirely dependent on access to Google's Gemini API and requires a valid API key. It is exclusively designed for Neovim users. The configuration options are extensive, which may present a learning curve for users new to Neovim plugin customization.

Health Check
Last Commit

5 days ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Author of Hugging Face Diffusers; Research Engineer at Mistral), David Cournapeau David Cournapeau(Author of scikit-learn), and
3 more.

codecompanion.nvim by olimorris

0.5%
6k
Neovim plugin for AI-powered coding assistance
Created 2 years ago
Updated 21 hours ago
Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

0.3%
18k
Neovim plugin emulating Cursor AI IDE for AI-driven code assistance
Created 1 year ago
Updated 1 week ago
Feedback? Help us improve.