Crate reovim_plugin_fold

Crate reovim_plugin_fold 

Source
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§

commands
Fold commands
stage
Fold render stage for pipeline integration
state
Fold state management

Structs§

FoldPlugin
Code folding plugin
FoldRange
A foldable range in the buffer

Enums§

FoldKind
Kind of fold (what construct it represents)