We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a02ded commit 449b5bdCopy full SHA for 449b5bd
lua/nvim-tree/renderer/components/padding.lua
@@ -2,8 +2,16 @@ local M = {}
2
3
local function check_siblings_for_folder(node, with_arrows)
4
if with_arrows then
5
+ local has_files = false
6
+ local has_folders = false
7
for _, n in pairs(node.parent.nodes) do
- if n.nodes then
8
+ if n.nodes and node.absolute_path ~= n.absolute_path then
9
+ has_folders = true
10
+ end
11
+ if not n.nodes then
12
+ has_files = true
13
14
+ if has_files and has_folders then
15
return true
16
end
17
0 commit comments