@@ -19,9 +19,9 @@ local function check_siblings_for_folder(node, with_arrows)
19
19
return false
20
20
end
21
21
22
- local function get_padding_indent_markers (depth , idx , nodes_number , markers , with_arrows , node )
22
+ local function get_padding_indent_markers (depth , idx , nodes_number , markers , with_arrows , inline_arrows , node )
23
23
local base_padding = with_arrows and (not node .nodes or depth > 0 ) and " " or " "
24
- local padding = base_padding
24
+ local padding = ( inline_arrows or depth == 0 ) and base_padding or " "
25
25
26
26
if depth > 0 then
27
27
local has_folder_sibling = check_siblings_for_folder (node , with_arrows )
@@ -39,8 +39,10 @@ local function get_padding_indent_markers(depth, idx, nodes_number, markers, wit
39
39
glyph = M .config .indent_markers .icons .none
40
40
end
41
41
42
- if not with_arrows or i == 1 then
42
+ if not with_arrows or ( inline_arrows and ( rdepth ~= i or not node . nodes )) then
43
43
padding = padding .. glyph .. " "
44
+ elseif inline_arrows then
45
+ padding = padding
44
46
elseif idx == nodes_number and i == rdepth and has_folder_sibling then
45
47
padding = padding .. base_padding .. glyph .. " ── "
46
48
elseif rdepth == i and not node .nodes and has_folder_sibling then
@@ -68,9 +70,10 @@ function M.get_padding(depth, idx, nodes_number, node, markers)
68
70
69
71
local show_arrows = M .config .icons .show .folder_arrow
70
72
local show_markers = M .config .indent_markers .enable
73
+ local inline_arrows = M .config .indent_markers .inline_arrows
71
74
72
75
if show_markers then
73
- padding = padding .. get_padding_indent_markers (depth , idx , nodes_number , markers , show_arrows , node )
76
+ padding = padding .. get_padding_indent_markers (depth , idx , nodes_number , markers , show_arrows , inline_arrows , node )
74
77
else
75
78
padding = padding .. string.rep (" " , depth )
76
79
end
0 commit comments