发布

  • refactor(nvim): split monolithic picker_ui.lua into focused submodules (#564)

    frostbyte_neo 发布于 2026-06-04 19:08:46 +00:00

    • refactor(picker_ui): split monolithic picker_ui.lua into focused submodules

    Break the ~2535-line picker_ui.lua into 8 modules under lua/fff/picker_ui/:

    • state_manager.lua: pure data store for all picker state
    • ui_creator.lua: buffers, windows, keymaps, autocmds
    • search_manager.lua: search execution, pagination, query history
    • renderer.lua: list rendering, combo separator, scrollbar, empty state
    • preview_manager.lua: preview debounce, title, update/clear
    • navigation.lua: cursor movement, pagination wrap, preview scrolling
    • layout_manager.lua: relayout on VimResized, close/cleanup
    • init.lua: coordinator wiring all submodules via init(P) pattern

    Move picker_ui.lua to picker_ui/init.lua for clean module resolution.

    Also removes unused scrollbar import in ui_creator.lua and need-check-nil
    diagnostic suppression comments in preview_manager.lua (nil was already
    handled by the guard check).

    • feat: rename and create utils in picker_ui

    • chore: move list_renderer and combo_renderer

    • feat: move grep_renderer and list_renderer

    • chore: fix lint

    • chore: update readme

    下载附件