diff --git a/denops/ddu/ddu.ts b/denops/ddu/ddu.ts index 3d062c3..e235bc7 100644 --- a/denops/ddu/ddu.ts +++ b/denops/ddu/ddu.ts @@ -421,7 +421,7 @@ export class Ddu { matcherKey, __sourceIndex: sourceIndex, __sourceName: source.name, - __level: (level ?? 0) + (item.level ?? 0), + __level: item.level ?? level ?? 0, __expanded: Boolean( item.treePath && this.isExpanded(convertTreePath(item.treePath)),