wtf.nvim  by piersolenski

Neovim plugin for diagnostic debugging

created 2 years ago
464 stars

Top 66.3% on sourcepulse

GitHubView on GitHub
Project Summary

wtf.nvim enhances the Neovim diagnostic experience by providing AI-powered explanations and web search capabilities for LSP-generated messages. It targets developers using Neovim who want to quickly understand and resolve code errors and warnings without leaving their editor. The plugin streamlines debugging by integrating with LLMs like ChatGPT and popular search engines.

How It Works

The plugin leverages Neovim's LSP diagnostics, sending the diagnostic message, code context, file type, and severity to configured endpoints. For AI debugging, it uses the OpenAI API to query models like gpt-3.5-turbo for explanations and solutions. For web searches, it intelligently filters local environment-specific strings from diagnostic messages to improve search result relevance across platforms like Google, Stack Overflow, and GitHub.

Quick Start & Requirements

  • Install via package managers like Packer or Lazy.
  • Requires MunifTanjim/nui.nvim.
  • OpenAI API key required for AI functionality (can be set via environment variable OPENAI_API_KEY or in configuration).
  • See installation instructions for detailed setup.

Highlighted Details

  • AI-powered diagnostic explanations and fixes using ChatGPT.
  • Direct web search integration for Google, DuckDuckGo, Stack Overflow, GitHub, Phind, and Perplexity.
  • Customizable search engines and AI models.
  • Optional inclusion of code context for more tailored AI responses.
  • History tracking of AI chats and Telescope integration for searching history.

Maintenance & Community

  • Developed by piersolenski.
  • No explicit community links (Discord/Slack) or roadmap mentioned in the README.

Licensing & Compatibility

  • No license specified in the README. Compatibility for commercial use or closed-source linking is undetermined.

Limitations & Caveats

The plugin's license is not specified, which may impact commercial adoption. Community support channels and a public roadmap are not detailed, potentially indicating a smaller or less formalized community.

Health Check
Last commit

3 weeks ago

Responsiveness

1 week

Pull Requests (30d)
13
Issues (30d)
2
Star History
33 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.