Skip to content

Commit

Permalink
Fix all plugins are always available
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Jun 23, 2024
1 parent b9ae7f0 commit a5c7953
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,14 @@ export class Dpp {

// Add plugins runtimepath
const depends = new Set<string>();
const availablePlugins = Object.values(recordPlugins).filter(async (
plugin,
) =>
plugin.path && await isDirectory(plugin.path) && await checkIf(plugin)
);
const availablePlugins = [];
for (const plugin of Object.values(recordPlugins)) {
if (
plugin.path && !await isDirectory(plugin.path) && await checkIf(plugin)
) {
availablePlugins.push(plugin);
}
}
const nonLazyPlugins = availablePlugins.filter((plugin) => !plugin.lazy);
const hookSources = [];
for (const plugin of nonLazyPlugins) {
Expand Down

0 comments on commit a5c7953

Please sign in to comment.