opencode.nvim is a Neovim plugin that integrates the opencode AI coding assistant directly into the editor, enabling developers to interact with AI agents in a deeply context-aware and workflow-native way. It allows users to send prompts that automatically include relevant editor context such as the current buffer, selected text, diagnostics, and visible content, making AI interactions far more precise and useful during development. The plugin supports a prompt library system, allowing developers to reuse predefined prompts or create custom ones tailored to their workflows. It also enables direct execution of AI-driven actions, such as code modifications or command execution, while giving users full control to review, accept, or reject changes through diff-based interfaces. The system integrates with an in-process Language Server Protocol implementation, enabling familiar features like hover explanations and code actions powered by AI.

Features

  • Context-aware prompts using buffer selection and diagnostics
  • Integration with Language Server Protocol for AI-powered code actions
  • Prompt library system with reusable and customizable templates
  • Diff-based interface to review and accept AI edits
  • Event-driven automation with editor hooks
  • Seamless integration with Neovim workflows and keybindings

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow opencode.nvim

opencode.nvim Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of opencode.nvim!

Additional Project Details

Programming Language

Lua

Related Categories

Lua Artificial Intelligence Software

Registered

4 days ago