Skip to content
Discussion options

You must be logged in to vote

Neat use case!

As your config is right now, the plugin will try to send requests to the frontend-only process. Idk exactly how opencode handles this front/back-end split, but I imagine that wouldn't work.

provider.cmd is not only what opencode.nvim executes, but also what it looks for first. So you might try setting provider.cmd to the same opencode serve command that you run on startup. Then it should find the server process and send requests to its port. However then the issue is the plugin can't start the TUI for you. Although it should be able to send requests to whatever server your separately-started TUI is attached to.

Make sure you have the --port flag on opencode serve too, to ex…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rik034
Comment options

Answer selected by Rik034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants