Expand description
Code folding plugin for reovim
This plugin provides code folding functionality:
- Toggle, open, close folds at cursor
- Open/close all folds in buffer
- Fold ranges from treesitter queries
§State Management
The plugin stores FoldManager in PluginStateRegistry, accessible by any component.
§Event Bus Integration
Commands emit fold events (unified types), and the plugin subscribes to handle them.
Re-exports§
pub use commands::FoldClose;pub use commands::FoldCloseAll;pub use commands::FoldOpen;pub use commands::FoldOpenAll;pub use commands::FoldRangesUpdated;pub use commands::FoldToggle;pub use state::FoldManager;pub use state::FoldState;
Modules§
Structs§
- Fold
Plugin - Code folding plugin
- Fold
Range - A foldable range in the buffer
Enums§
- Fold
Kind - Kind of fold (what construct it represents)