diff --git a/lua/neorg/modules/core/summary/module.lua b/lua/neorg/modules/core/summary/module.lua index c189e9ece..7438f6f06 100644 --- a/lua/neorg/modules/core/summary/module.lua +++ b/lua/neorg/modules/core/summary/module.lua @@ -127,34 +127,34 @@ module.load = function() }) end - local leaf_categories = categories - local categories_path = vim.split(category, ".", { plain = true }) - for i, path in ipairs(categories_path) do - local titled_path = lib.title(path) - if i == #categories_path then - table.insert(leaf_categories[titled_path], { - title = tostring(metadata.title), - norgname = norgname, - description = metadata.description, - }) - break - end - local sub_categories = vim.defaulttable() - if leaf_categories[titled_path] then - for _, item in ipairs(leaf_categories[titled_path]) do - if item.sub_categories then - leaf_categories = item.sub_categories - goto continue - end - end - end - table.insert(leaf_categories[titled_path], { - title = titled_path, - sub_categories = sub_categories, - }) - leaf_categories = sub_categories - ::continue:: - end + -- local leaf_categories = categories + -- local categories_path = vim.split(category, ".", { plain = true }) + -- for i, path in ipairs(categories_path) do + -- local titled_path = lib.title(path) + -- if i == #categories_path then + -- table.insert(leaf_categories[titled_path], { + -- title = tostring(metadata.title), + -- norgname = norgname, + -- description = metadata.description, + -- }) + -- break + -- end + -- local sub_categories = vim.defaulttable() + -- if leaf_categories[titled_path] then + -- for _, item in ipairs(leaf_categories[titled_path]) do + -- if item.sub_categories then + -- leaf_categories = item.sub_categories + -- goto continue + -- end + -- end + -- end + -- table.insert(leaf_categories[titled_path], { + -- title = titled_path, + -- sub_categories = sub_categories, + -- }) + -- leaf_categories = sub_categories + -- ::continue:: + -- end end end) local result = {}