Skip to content

Commit

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

export type Plugin = {
augroup?: string;
build?: string;
depends?: string[];
frozen?: boolean;
ftplugin?: Record<string, string>;
if?: boolean | string;
lazy?: boolean;
local?: boolean;
merge_ftdetect?: string;
merged?: boolean;
name: string;
path: string;
repo: string;
on_cmd?: string | string[];
on_event?: string | string[];
on_ft?: string | string[];
on_func?: string | string[];
on_if?: string | string[];
on_lua?: string | string[];
on_map?: string | string[];
on_path?: string | string[];
on_source?: string | string[];
path?: string;
protocol?: string;
repo?: string;
rev?: string;
rtp?: string;
script_type?: string;
timeout?: number;
trusted?: boolean;
};

0 comments on commit 8301b4d

Please sign in to comment.