mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 13:05:14 +03:00
3de8f3a89f
Co-authored-by: Daniel Smolsky <dannysmo@gmail.com>
11 lines
399 B
TypeScript
11 lines
399 B
TypeScript
import { Plugin } from "@opencode/plugin/tui"
|
|
|
|
// A slot that returns bare text next to a well-formed one (anomalyco/opencode#58112).
|
|
export default Plugin.define({
|
|
id: "fixture.slot-string",
|
|
setup(context) {
|
|
context.ui.slot({ append: "home.footer", render: () => "hello from a plugin" })
|
|
context.ui.slot({ append: "home.footer", render: () => <text>Plugin still alive</text> })
|
|
},
|
|
})
|