diff --git a/denops/@dpp-exts/toml.ts b/denops/@dpp-exts/toml.ts index ab3d9ee..bac2f5f 100644 --- a/denops/@dpp-exts/toml.ts +++ b/denops/@dpp-exts/toml.ts @@ -37,7 +37,7 @@ export class Ext extends BaseExt { return { ...defaultOptions, ...plugin, - name: plugin.name ?? basename(plugin.repo), + name: plugin.name ?? basename(plugin.repo ?? ""), } }); console.log(plugins); diff --git a/denops/dpp/types.ts b/denops/dpp/types.ts index 0cb87f0..4a9f01c 100644 --- a/denops/dpp/types.ts +++ b/denops/dpp/types.ts @@ -68,11 +68,32 @@ export type Action = { }; export type Plugin = { + augroup?: string; + build?: string; + depends?: string[]; frozen?: boolean; + ftplugin?: Record; + 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; };