Skip to content

Commit

Permalink
Use denippet#get_complete_items in gather
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Dec 4, 2023
1 parent 847c328 commit 579a9b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions denops/@ddc-sources/denippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export class Source extends BaseSource<Params> {
async gather({
denops,
}: GatherArguments<Params>): Promise<DdcGatherItems> {
return await denops.dispatch(
"denippet",
"getCompleteItems",
// We have to go through Vim script to guarantee that Denippet is loaded.
return await denops.call(
"denippet#get_complete_items",
false,
) as Item<UserData>[];
}
Expand Down

0 comments on commit 579a9b1

Please sign in to comment.