feat: More auto-unfold options
Option to auto unfold when there is only N root nodes in outline. Defaults to 1, meaning if there is only one 'root' parent, it should always be unfolded. This is useful if the entire file is a single function or a single 'return'. The old auto_unfold_hover option **still works as expected**.
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
---@field hierarchy boolean
|
||||
---@field children? outline.SymbolNode[]
|
||||
---@field traversal_child integer Should NOT be modified during iteration using parser.preorder_iter
|
||||
---@field is_root boolean?
|
||||
|
||||
---@class outline.FlatSymbolNode
|
||||
---@field name string
|
||||
@@ -55,6 +56,7 @@
|
||||
---@field hierarchy boolean
|
||||
---@field children? outline.FlatSymbolNode[]
|
||||
---@field traversal_child integer
|
||||
---@field is_root boolean?
|
||||
---@field line_in_outline integer
|
||||
---@field prefix_length integer
|
||||
---@field hovered boolean
|
||||
|
||||
Reference in New Issue
Block a user