Skip to content

Commit

Permalink
Add Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 17, 2023
1 parent 81fa31e commit 4b35fd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions denops/dpp/base/config.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -12,5 +12,7 @@ export type ConfigArguments = {
export abstract class BaseConfig {
apiVersion = 1;

config(_args: ConfigArguments): void | Promise<void> {}
config(_args: ConfigArguments): Plugin[] | Promise<Plugin[]> {
return [];
}
}
4 changes: 4 additions & 0 deletions denops/dpp/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ export type Action<Params extends BaseActionParams> = {
description: string;
callback: ActionCallback<Params>;
};

export type Plugin = {
name: string;
};

0 comments on commit 4b35fd0

Please sign in to comment.