diff --git a/lua/neogen/utilities/nodes.lua b/lua/neogen/utilities/nodes.lua index 34625fb..b76e102 100644 --- a/lua/neogen/utilities/nodes.lua +++ b/lua/neogen/utilities/nodes.lua @@ -35,7 +35,6 @@ neogen.utilities.nodes = { local results = opts.results or {} for child in parent:iter_children() do - -- Find the first recursive item and breaks if opts.first then if child:named() and child:type() == node_name then @@ -92,7 +91,6 @@ neogen.utilities.nodes = { matched = self:recursive_find(parent, subtree.node_type) end - for _, child in pairs(matched) do if subtree.extract == true then local name = subtree.node_type or "_"