From 4b35fd0ca9ce340c501572c7b1a0923b51389b46 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 17 Sep 2023 10:42:26 +0900 Subject: [PATCH] Add Plugin --- denops/dpp/base/config.ts | 6 ++++-- denops/dpp/types.ts | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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; +};