38 lines
3.0 KiB
Markdown
38 lines
3.0 KiB
Markdown
# 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
|
|
1. 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.
|
|
2. 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.
|
|
3. 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.
|
|
4. 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
|
|
1. Use headless Neovim fixtures for initialization, incremental edits, Unicode positions, context selection and asynchronous callback invalidation.
|
|
2. Test multi-buffer rename rollback/preconditions under concurrent edits, buffer unloads and autocmd-induced failure; reject unsupported transaction paths.
|
|
3. 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:
|
|
```sh
|
|
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.
|