mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 02:34:21 +01:00
docs: fix bugged example (#3068)
This commit is contained in:
@@ -111,7 +111,7 @@ export const EnvProtection = async ({ project, client, $, directory, worktree })
|
|||||||
Plugins can also add custom tools to opencode:
|
Plugins can also add custom tools to opencode:
|
||||||
|
|
||||||
```ts title=".opencode/plugin/custom-tools.ts"
|
```ts title=".opencode/plugin/custom-tools.ts"
|
||||||
import type { Plugin, tool } from "@opencode-ai/plugin"
|
import { type Plugin, tool } from "@opencode-ai/plugin"
|
||||||
|
|
||||||
export const CustomToolsPlugin: Plugin = async (ctx) => {
|
export const CustomToolsPlugin: Plugin = async (ctx) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user