neural  by dense-analysis

Vim/Neovim plugin for AI-powered code generation

Created 2 years ago
506 stars

Top 61.6% on SourcePulse

GitHubView on GitHub
Project Summary

Neural is a Vim/Neovim plugin that integrates various AI models to assist with code generation, explanation, and text manipulation directly within the editor. It targets developers and writers who want to leverage AI for tasks like generating code snippets, writing documentation, or correcting grammar, offering asynchronous streaming for fast results.

How It Works

Neural acts as an interface to external AI services, with OpenAI as the default. It sends user-selected text or prompts to the configured AI model and streams the response back into the Vim/Neovim buffer. This approach allows users to benefit from powerful AI models without leaving their development environment, with a focus on privacy and avoiding data leakage to third parties.

Quick Start & Requirements

  • Installation: Add dense-analysis/neural via your preferred Vim package manager (e.g., vim-plug, packer.nvim).
  • Prerequisites: Python 3.7+, Vim 8.0+ or Neovim 0.8+.
  • Configuration: Requires an API key for the chosen AI service (e.g., OpenAI API key).
  • Docs: :help neural within Vim/Neovim.

Highlighted Details

  • Supports asynchronous streaming for fast, real-time AI responses.
  • Offers commands like :NeuralExplain for code explanation and :NeuralStop to halt operations.
  • Integrates with nui.nvim for UI enhancements and significant.nvim for animated signs.
  • Includes basic redaction for sensitive information in prompts.

Maintenance & Community

Maintained by the Dense Analysis team, with contributions acknowledged from Anexon, w0rp, Munif Tanjim, and Luis Poloto.

Licensing & Compatibility

Released under the MIT license, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

All input data is sent to third-party servers for processing by AI models. Generated code should be carefully reviewed and linted before production use.

Health Check
Last Commit

1 month ago

Responsiveness

1+ week

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

Explore Similar Projects

Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Former Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

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