Skip to content

Commit

Permalink
Fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 20, 2023
1 parent 8301b4d commit 13eb468
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion denops/@dpp-exts/toml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Ext extends BaseExt<Params> {
...defaultOptions,
...plugin,
name: plugin.name ?? basename(plugin.repo ?? ""),
}
};
});
console.log(plugins);

Expand Down
9 changes: 7 additions & 2 deletions denops/dpp/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down
4 changes: 3 additions & 1 deletion denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
DppOptions,
ExtName,
ExtOptions,
Plugin,
} from "./types.ts";
import {
defaultContext,
Expand Down Expand Up @@ -61,7 +62,8 @@ export class Dpp {
return ret;
}

async makeState() {
async makeState(basePath: string, plugins: Plugin[]) {
// Initialize plugins
}

private async getExt(
Expand Down

0 comments on commit 13eb468

Please sign in to comment.