nvim-tree.lua/lua/nvim-tree/explorer/common.lua
kiyan 76d181d480 refacto: move filters and sorters in their own modules
Also exclude filters is taken into account in git ignore
fixes #892
2022-03-06 14:14:56 +01:00

12 lines
196 B
Lua

local uv = vim.loop
local M = {}
function M.has_one_child_folder(node)
return #node.nodes == 1
and node.nodes[1].nodes
and uv.fs_access(node.nodes[1].absolute_path, 'R')
end
return M