mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
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> |
||
|---|---|---|
| .. | ||
| snacks | ||
| trouble/sources | ||