You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+87-1Lines changed: 87 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,16 @@ require('opencode').setup({
119
119
default_mode='build', -- 'build' or 'plan' or any custom configured. @see [OpenCode Agents](https://opencode.ai/docs/modes/)
120
120
default_system_prompt=nil, -- Custom system prompt to use for all sessions. If nil, uses the default built-in system prompt
121
121
keymap_prefix='<leader>o', -- Default keymap prefix for global keymaps change to your preferred prefix and it will be applied to all keymaps starting with <leader>o
122
-
opencode_executable='opencode', -- Name of your opencode binary
122
+
runtime= {
123
+
command= { 'opencode' }, -- Base runtime command, array-only
124
+
serve_args= { 'serve' }, -- Optional, defaults to {'serve'}
125
+
version_args= { '--version' }, -- Optional, defaults to {'--version'}
126
+
startup_timeout_ms=15000, -- Optional startup timeout before failing with an error
127
+
path= {
128
+
to_server=nil, -- Optional fun(path) -> server path
129
+
to_local=nil, -- Optional fun(path) -> local path
130
+
},
131
+
},
123
132
keymap= {
124
133
editor= {
125
134
['<leader>og'] = { 'toggle' }, -- Open opencode. Close if opened
@@ -333,6 +342,83 @@ require('opencode').setup({
333
342
})
334
343
```
335
344
345
+
### Runtime Examples
346
+
347
+
`runtime.command` is array-only and is passed directly to `vim.system(...)`.
0 commit comments