Skip to content

Commit b1bcdb6

Browse files
committed
fix: small rename
1 parent 16b54e5 commit b1bcdb6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: lua/nvim-tree.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function M.on_keypress(mode)
173173
if node.link_to and not node.entries then
174174
lib.open_file(mode, node.link_to)
175175
elseif node.entries ~= nil then
176-
lib.unroll_dir(node)
176+
lib.expand_or_collapse(node)
177177
else
178178
lib.open_file(mode, node.absolute_path)
179179
end

Diff for: lua/nvim-tree/lib.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function M.get_last_group_node(node)
124124
return next
125125
end
126126

127-
function M.unroll_dir(node)
127+
function M.expand_or_collapse(node)
128128
node.open = not node.open
129129
if node.has_children then node.has_children = false end
130130
if #node.entries == 0 then

Diff for: lua/nvim-tree/populate.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ local function should_ignore(path)
141141
end
142142

143143
local function should_ignore_git(path, status)
144-
return not M.show_ignored and (status and status[path] == '!!')
144+
return M.config.filter_ignored and (status and status[path] == '!!')
145145
end
146146

147147
function M.refresh_entries(entries, cwd, parent_node, status)

0 commit comments

Comments
 (0)