-- This file is an internal file-browser addon. -- It should not be imported like a normal module. local g = require 'modules.globals' ---Parser for the root. ---@type ParserConfig local root_parser = { name = "root", priority = math.huge, api_version = '1.0.0', } function root_parser:can_parse(directory) return directory == '' end --we return the root directory exactly as setup function root_parser:parse() return g.root, { sorted = true, filtered = true, } end return root_parser