File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11AI_CODING_AGENT_TOOL=
2+ AI_CHAT_TOOL=
23AI_SUGGESTIONS_ENABLED=
34AI_SUGGESTIONS_ENGINE=
45BLINK_FUZZY_IMPLEMENTATION=
6+ CLAUDE_CODE_OAUTH_TOKEN=
57COPILOT_PROXY=
68FORMAT_ON_SAVE=true
79GREP_EXCLUDE_FILES=package-lock.json,lazy-lock.json
Original file line number Diff line number Diff line change @@ -175,6 +175,16 @@ return {
175175 adapters = {
176176 acp = {
177177 opencode = false ,
178+ -- $ claude setup-token # Copy token
179+ -- $ npm install -g @zed-industries/claude-agent-acp # Install ACP bridge
180+ -- Add token to .nvim.env
181+ claude_code = function ()
182+ return require (" codecompanion.adapters" ).extend (" claude_code" , {
183+ env = {
184+ CLAUDE_CODE_OAUTH_TOKEN = " CLAUDE_CODE_OAUTH_TOKEN" ,
185+ },
186+ })
187+ end ,
178188 },
179189 http = {
180190 opencode = function ()
@@ -195,7 +205,7 @@ return {
195205 },
196206 interactions = {
197207 chat = {
198- adapter = " opencode " ,
208+ adapter = T . env . get ( " AI_CHAT_TOOL " ) ,
199209 keymaps = {
200210 close = {
201211 modes = { n = key_cancel , i = key_cancel },
@@ -206,7 +216,7 @@ return {
206216 },
207217 },
208218 inline = {
209- adapter = " opencode " ,
219+ adapter = T . env . get ( " AI_CHAT_TOOL " ) ,
210220 },
211221 },
212222 },
You can’t perform that action at this time.
0 commit comments