Skip to content

Commit

Permalink
Fix default merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 28, 2024
1 parent 976a0f1 commit a28b276
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,15 @@ function initPlugin(plugin: Plugin, basePath: string, hasLua: boolean): Plugin {
plugin.depends = [plugin.depends];
}

if (!("lazy" in plugin)) {
if (plugin.lazy === undefined) {
// Default lazy set
plugin.lazy = Object.keys(plugin).filter((key) =>
key.startsWith("on_")
).length > 0;
}

if (!plugin.merged) {
if (plugin.merged === undefined) {
// Default merged set
plugin.merged = !plugin.lazy && [
"local",
"build",
Expand Down

0 comments on commit a28b276

Please sign in to comment.