File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
nvim-tree/renderer/components Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,7 @@ Following is the default configuration. See |nvim-tree-opts| for details. >lua
463
463
diagnostics_placement = "signcolumn",
464
464
bookmarks_placement = "signcolumn",
465
465
padding = " ",
466
+ folder_arrow_padding = " ",
466
467
symlink_arrow = " ➛ ",
467
468
show = {
468
469
file = true,
@@ -1069,6 +1070,10 @@ Configuration options for icons.
1069
1070
Inserted between icon and filename.
1070
1071
Type: `string ` , Default: `" "`
1071
1072
1073
+ *nvim-tree.renderer.icons.folder_arrow_padding*
1074
+ Inserted between folder arrow icon and file/folder icon.
1075
+ Type: `string ` , Default: `" "`
1076
+
1072
1077
*nvim-tree.renderer.icons.symlink_arrow*
1073
1078
Used as a separator between symlinks' source and target.
1074
1079
Type: `string ` , Default: `" ➛ "`
Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
335
335
diagnostics_placement = " signcolumn" ,
336
336
bookmarks_placement = " signcolumn" ,
337
337
padding = " " ,
338
+ folder_arrow_padding = " " ,
338
339
symlink_arrow = " ➛ " ,
339
340
show = {
340
341
file = true ,
Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ function M.get_arrows(node)
95
95
local dir = node :as (DirectoryNode )
96
96
if dir then
97
97
if dir .open then
98
- str = M .config .icons .glyphs .folder [" arrow_open" ] .. M .config .icons .padding
98
+ str = M .config .icons .glyphs .folder [" arrow_open" ] .. M .config .icons .folder_arrow_padding
99
99
hl = " NvimTreeFolderArrowOpen"
100
100
else
101
- str = M .config .icons .glyphs .folder [" arrow_closed" ] .. M .config .icons .padding
101
+ str = M .config .icons .glyphs .folder [" arrow_closed" ] .. M .config .icons .folder_arrow_padding
102
102
end
103
103
elseif M .config .indent_markers .enable then
104
104
str = " "
105
105
else
106
- str = " "
106
+ str = " " .. string.rep ( " " , # M . config . icons . folder_arrow_padding )
107
107
end
108
108
109
109
return { str = str , hl = { hl } }
You can’t perform that action at this time.
0 commit comments