A Neovim plugin that integrates the opencode AI assistant for editor-aware research, code reviews, and requests.
opencode.nvim is a Neovim plugin that integrates the opencode AI assistant directly into the editor. It enables context-aware AI interactions like code reviews, explanations, and implementations by sharing relevant editor context such as buffers, selections, and diagnostics, all without leaving Neovim.
Neovim users who want to incorporate AI-assisted coding workflows directly into their editor, particularly developers who already use or want to use the opencode AI assistant.
Developers choose this plugin for its deep, native Neovim integration, offering Vim-like workflows with ranges, dot-repeat, and operator-pending modes, along with automatic context sharing and edit management, making AI assistance feel like a natural part of the editor.
Integrate Neovim and OpenCode AI to stay in your flow.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically shares editor context like buffers, selections, diagnostics, and git diffs with opencode, making AI responses more accurate without manual copying, as detailed in the context placeholders table.
Supports ranges, dot-repeat, and operator-pending modes, allowing AI interactions to feel like natural Vim commands, which is emphasized in the philosophy for a seamless editing experience.
Can connect to any existing opencode server or start an embedded instance with customizable terminal integration, offering flexibility in deployment as shown in the server configuration options.
Provides a built-in diff interface to review, accept, or reject AI-generated file edits, ensuring safe integration of changes with keymaps for hunk navigation, as described in the permissions section.
The in-process LSP integration for hover and code actions is marked as experimental in the README, warning users of potential instability or incomplete functionality in daily use.
Heavily reliant on the opencode ecosystem; switching to another AI assistant would require significant plugin modifications, as it doesn't natively support other models or APIs.
Requires manual keymap configuration and optional dependencies like snacks.nvim for enhanced features, which can be daunting for users seeking a plug-and-play solution, as noted in the setup instructions.