coder / coder/claudecode.nvim

[QUESTION] Dynamically Switch Terminal.Provider ??

Aperta
#158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Lua
Stelle
3.1k
Fork
216
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Issue #154 discussed a way to run claudecode.nvim with Claude Code in an external session, using 'provider = "none"' and then launch claude using `claude --ide`. This is great for working on monolith projects.

For small projects, I'd like the ability to dynamically toggle between 'provider = "none"' and 'provider = "auto". I've tried some manual tests, but find claudecode.nvim persists the 'startup value', and doesn't seem to use the dynamically set value. Here's the commands used in my manual test:

```
# print setting
:lua print(vim.inspect(require("claudecode").state.config.terminal.provider))
# toggle setting
:lua require("claudecode").state.config.terminal.provider = require("claudecode").state.config.terminal.provider == "auto" and "none" or "auto"
```

Is there a way to toggle the provider dynamically?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.