; Folding queries for Lux
; Allows folding function bodies, type definitions, etc.

; Fold function bodies
(function_declaration) @fold

; Fold type definitions
(type_declaration) @fold

; Fold effect declarations
(effect_declaration) @fold

; Fold handler declarations
(handler_declaration) @fold

; Fold trait declarations
(trait_declaration) @fold

; Fold impl blocks
(impl_declaration) @fold

; Fold match expressions
(match_expression) @fold

; Fold block expressions
(block_expression) @fold

; Fold multi-line comments (doc comments)
(doc_comment)+ @fold
