Skip to content

Commit cab3a2e

Browse files
committed
fix: ignore filters on root folder, fixes #184
1 parent 2f00d64 commit cab3a2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neo-tree/sources/common/file-items.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ function create_item(context, path, _type)
5656

5757
local state = context.state
5858
local f = state.filtered_items
59-
if f then
59+
local is_not_root = context.state.path ~= path
60+
if f and is_not_root then
6061
if f.hide_by_name[name] then
6162
item.filtered_by = item.filtered_by or {}
6263
item.filtered_by.name = true

0 commit comments

Comments
 (0)