diff --git a/denops/dpp/base/config.ts b/denops/dpp/base/config.ts index fc0f0e1..8524160 100644 --- a/denops/dpp/base/config.ts +++ b/denops/dpp/base/config.ts @@ -1,6 +1,6 @@ import { ContextBuilder } from "../context.ts"; import { Denops } from "../deps.ts"; -import { Dpp } from "../types.ts"; +import { Dpp, Plugin } from "../types.ts"; export type ConfigArguments = { denops: Denops; @@ -12,5 +12,7 @@ export type ConfigArguments = { export abstract class BaseConfig { apiVersion = 1; - config(_args: ConfigArguments): void | Promise {} + config(_args: ConfigArguments): Plugin[] | Promise { + return []; + } } diff --git a/denops/dpp/types.ts b/denops/dpp/types.ts index b944b54..d8a87d2 100644 --- a/denops/dpp/types.ts +++ b/denops/dpp/types.ts @@ -66,3 +66,7 @@ export type Action = { description: string; callback: ActionCallback; }; + +export type Plugin = { + name: string; +};