Skip to content

Commit

Permalink
fix: use dispatch in ddc-source
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Dec 2, 2023
1 parent 415ac0f commit 3267e6f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions denops/@ddc-sources/denippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export class Source extends BaseSource<Params> {
async gather({
denops,
}: GatherArguments<Params>): Promise<DdcGatherItems> {
return await denops.call(
"denippet#get_complete_items",
return await denops.dispatch(
"denippet",
"getCompleteItems",
false,
) as Item<UserData>[];
}

Expand Down Expand Up @@ -71,8 +73,9 @@ export class Source extends BaseSource<Params> {
denops: Denops,
body: string,
): Promise<string> {
return await denops.call(
"denippet#to_string",
return await denops.dispatch(
"denippet",
"snippetToString",
body,
) as string;
}
Expand Down

0 comments on commit 3267e6f

Please sign in to comment.