opencode
URL: https://github.com/NickvanDyke/opencode.nvim/
Maintainers: Austin Horstman
OpenCode.nvim provides seamless integration with Claude Code for AI-assisted development.
note
Recommended: snacks.enable with settings.input.enabled = true for better prompt input
Required: snacks.enable to use opencode.nvim's embedded terminal
tip
Set opts.autoread = true if using the auto_reload option.
plugins.opencode.enable
Whether to enable opencode.
Type: boolean
Default:
false
Example:
true
Declared by:
plugins.opencode.package
The opencode package to use.
Type: package
Default:
pkgs.vimPlugins.opencode-nvim
Declared by:
plugins.opencode.autoLoad
Whether to automatically load opencode when neovim starts.
Type: boolean
Default:
false when lazy-loading is enabled.
Example:
false
Declared by:
plugins.opencode.settings
Options provided to the require('opencode').setup function.
Type: lua value
Default:
{ }
Example:
{
auto_reload = false;
port = 8080;
prompts = {
example = {
description = "An example prompt configuration";
prompt = "Write a function that returns the factorial of a number";
};
};
}
Declared by: