diff --git a/denops/@dpp-exts/toml.ts b/denops/@dpp-exts/toml.ts index bac2f5f..bce877b 100644 --- a/denops/@dpp-exts/toml.ts +++ b/denops/@dpp-exts/toml.ts @@ -38,7 +38,7 @@ export class Ext extends BaseExt { ...defaultOptions, ...plugin, name: plugin.name ?? basename(plugin.repo ?? ""), - } + }; }); console.log(plugins); diff --git a/denops/dpp/app.ts b/denops/dpp/app.ts index 7d783a7..dfe6971 100644 --- a/denops/dpp/app.ts +++ b/denops/dpp/app.ts @@ -19,9 +19,14 @@ export function main(denops: Denops) { `${toFileUrl(configPath).href}#${performance.now()}` ); const obj = new mod.Config(); - await obj.config({ denops, basePath, contextBuilder, dpp }); + const plugins = await obj.config({ + denops, + basePath, + contextBuilder, + dpp, + }); - await dpp.makeState(); + await dpp.makeState(basePath, plugins); return Promise.resolve(); }, diff --git a/denops/dpp/dpp.ts b/denops/dpp/dpp.ts index 35dc88e..d4e7276 100644 --- a/denops/dpp/dpp.ts +++ b/denops/dpp/dpp.ts @@ -7,6 +7,7 @@ import { DppOptions, ExtName, ExtOptions, + Plugin, } from "./types.ts"; import { defaultContext, @@ -61,7 +62,8 @@ export class Dpp { return ret; } - async makeState() { + async makeState(basePath: string, plugins: Plugin[]) { + // Initialize plugins } private async getExt(