3.0 KiB
23 — Neovim LSP/DAP integration and inspection buffers
Status: PLANNED; no implementation claim Requirements: R-015,R-019,R-020 Dependencies: 02 for basic launch;16,18-21 for full acceptance. May parallel22 after schema freeze.
Ownership and boundaries
Proposed Sol: NEW clients/neovim/ Lua module, help docs and headless fixtures. Root owns protocol/schema versions; no user Neovim config edits. Future assignments must verify the then-current baseline and exact disjoint paths; these proposed scopes do not authorize work in another repository.
Contracts and data flow
Use standard Neovim LSP and DAP integration with thin Lua glue. Provide commands/keymap examples and read-only split-buffer timeline/tree/entity views. Shared service supplies all compiler/debug data. Native editing/rename guarantees must be tested rather than assumed from generic LSP helpers.
Implementation sequence
- Verify current Neovim and chosen DAP client APIs, pin/test a supported version range and expose explicit executable/settings configuration. Do not mutate the user's installed configuration.
- Implement session-aware read-only views with paging, source jumps and deterministic selection. Bind updates to debug position generation and close views safely on session termination.
- Implement guarded rename by materializing affected buffers, synchronizing/recomputing, checking versions/content and using a tested buffer transaction. If Neovim helpers cannot guarantee it, implement and test the guard or reject the operation.
- Document startup, profile/target selection, explicit build prerequisites, live breakpoints/stepping, replay navigation and recovery. Keep optional keybindings opt-in.
Failure behavior and constraints
Buffer unloads, modified source, outdated callbacks and DAP disconnect cannot leave editable stale generated text or apply partial renames. Missing plugin/API support reports a compatibility error. Terminal/rendered strings cannot execute editor commands.
Acceptance scenarios
- Use headless Neovim fixtures for initialization, incremental edits, Unicode positions, context selection and asynchronous callback invalidation.
- Test multi-buffer rename rollback/preconditions under concurrent edits, buffer unloads and autocmd-induced failure; reject unsupported transaction paths.
- Run live/replay DAP and custom-view journeys, including paging, source navigation, cancellation and disconnect cleanup.
Verification and integration
Proposed NEW CTest label: client-neovim. Once implemented, register a nonzero suite and run:
dev cpp-gcc -c ctest --test-dir build/bootstrap -L client-neovim --output-on-failure
This future command is not evidence that the label/tests exist now. Before dispatch, bind the fixtures above to actual targets and record prerequisites/side effects. Require fresh independent review of the implemented contract and affected integrations. Module setup must be reversible without replacing user config. Restore only module-owned buffers/autocmds/keymaps; never undo independent user edits or remove unrelated plugins.