refacto: move filters and sorters in their own modules

Also exclude filters is taken into account in git ignore
fixes #892
This commit is contained in:
kiyan
2022-03-06 14:14:56 +01:00
parent 5cfe768882
commit 76d181d480
8 changed files with 159 additions and 136 deletions

View File

@@ -0,0 +1,11 @@
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