snacks.nvim/lua
Folke Lemaitre 56bdc78505
refactor(scroll): convert to object-oriented state management
Converted scroll state management from procedural to OO approach:

- State is now a proper class with methods (get, stop, wo, valid, update, reset)
- Window options now managed per-state (_wo field) instead of global wo_backup table
- Centralized cleanup in State:stop() method
- Consolidated validation in State:valid() method
- Added is_enabled() helper for enable checks
- Simplified code throughout by using state methods

Benefits:
- Clearer state lifecycle management
- Better encapsulation and ownership
- Less code duplication
- More maintainable

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 09:43:19 +02:00
..
snacks refactor(scroll): convert to object-oriented state management 2025-10-24 09:43:19 +02:00
trouble/sources Revert "feat: test" 2025-02-14 22:13:38 +01:00