Skip to content

Commit cfc5c98

Browse files
committed
opencode: work around anomalyco/opencode#2205
Having a local provider in the config breaks custom slash commands: 1. If the local provider isn't running, the / commands fail 2. If it is, the / commands use the provider even when they shouldn't!
1 parent 340a4ca commit cfc5c98

2 files changed

Lines changed: 43 additions & 14 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://opencode.ai/config.json",
3+
"keybinds": {
4+
"leader": "ctrl+x",
5+
"editor_open": "<leader>e",
6+
"session_new": "<leader>n",
7+
"session_list": "<leader>l",
8+
"session_share": "<leader>s",
9+
"session_interrupt": "esc",
10+
"session_compact": "<leader>c",
11+
"tool_details": "<leader>d",
12+
"model_list": "<leader>m",
13+
"theme_list": "<leader>t",
14+
"project_init": "<leader>i",
15+
"input_clear": "ctrl+c",
16+
"input_paste": "ctrl+v",
17+
"input_submit": "enter",
18+
"input_newline": "shift+enter,ctrl+j",
19+
"messages_page_up": "ctrl+alt+p",
20+
"messages_page_down": "ctrl+alt+n",
21+
"messages_half_page_up": "ctrl+alt+u",
22+
"messages_half_page_down": "ctrl+alt+d",
23+
"messages_previous": "ctrl+alt+k",
24+
"messages_next": "ctrl+alt+j",
25+
"messages_first": "ctrl+g",
26+
"messages_last": "ctrl+alt+g",
27+
"app_exit": "ctrl+c,<leader>q"
28+
},
29+
"provider": {
30+
"lmstudio": {
31+
"npm": "@ai-sdk/openai-compatible",
32+
"name": "LM Studio (local)",
33+
"options": {
34+
"baseURL": "http://127.0.0.1:1234/v1"
35+
},
36+
"models": {
37+
"google/gemma-3n-e4b": {
38+
"name": "Gemma 3n-e4b (local)"
39+
}
40+
}
41+
}
42+
}
43+
}

‎.config/opencode/opencode.json‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,5 @@
2525
"messages_first": "ctrl+g",
2626
"messages_last": "ctrl+alt+g",
2727
"app_exit": "ctrl+c,<leader>q"
28-
},
29-
"provider": {
30-
"lmstudio": {
31-
"npm": "@ai-sdk/openai-compatible",
32-
"name": "LM Studio (local)",
33-
"options": {
34-
"baseURL": "http://127.0.0.1:1234/v1"
35-
},
36-
"models": {
37-
"google/gemma-3n-e4b": {
38-
"name": "Gemma 3n-e4b (local)"
39-
}
40-
}
41-
}
4228
}
4329
}

0 commit comments

Comments
 (0)