Skip to content

Commit

Permalink
Check merged flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Feb 3, 2024
1 parent 6ca4a02 commit 866bc33
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 @@ -202,13 +202,16 @@ export class Dpp {
return;
}

plugin.sourced = true;
rtps.splice(runtimeIndex, 0, plugin.rtp);
if (!plugin.merged) {
rtps.splice(runtimeIndex, 0, plugin.rtp);

const afterDir = `${plugin.rtp}/after`;
if (await isDirectory(afterDir)) {
rtps.splice(rtps.indexOf(runtimePath) + 1, 0, afterDir);
const afterDir = `${plugin.rtp}/after`;
if (await isDirectory(afterDir)) {
rtps.splice(rtps.indexOf(runtimePath) + 1, 0, afterDir);
}
}

plugin.sourced = true;
};

// Check plugin-option-if is enabled
Expand Down

0 comments on commit 866bc33

Please sign in to comment.