Phase 3: Stabilization (checkhealth, tests, docs)#12
Open
Schmarvinius wants to merge 1 commit into
Open
Conversation
Stabilization phase. checkhealth (health.lua): - :checkhealth nvim-ask reports Neovim version, registered/selected backend (delegating to the backend's own health()), available presets, and enabled context providers; supports both modern and legacy vim.health APIs Tests (plenary.nvim, busted style, under tests/spec/): - parser: multi-block, c++/c# langs, info strings, unterminated fences - prompt: selection + extra context + history + bare instruction - presets: defaults/override/add/names/unknown - context: surrounding (clamped, selection-gated), whole file, combined - backends: registry resolve/opts/register + claude interface + safe stop - diff: unified() + preview accept/reject/no-changes UI - health: :checkhealth produces a report - ui: full multi-turn integration (stream -> complete -> follow-up with history -> retry -> apply) via a fake backend Tooling: - tests/minimal_init.lua self-discovers plenary (PLENARY_DIR, .tests/, or an installed lazy/packer copy) and sources its plugin explicitly - Makefile: make test / make deps / make clean; exits non-zero on failure - .gitignore: ignore .tests/ - README: document :checkhealth and how to run tests All 43 tests pass (exit code 0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8.
Non-functional stabilization for the expanded plugin.
:checkhealth nvim-ask(lua/nvim-ask/health.lua)Reports:
health()git_diffis on butgitis missing)Supports both the modern (
vim.health.start) and legacy (report_*) APIs.Test suite (plenary.nvim, busted style —
tests/spec/)c++/c#langs, info strings, unterminated fencesstopunified()pluspreviewaccept/reject/no-changes UI:checkhealth nvim-askproduces a report43 tests, all passing (exit code 0).
Tooling
tests/minimal_init.luaself-discovers plenary viaPLENARY_DIR, a local.tests/clone, or an existing lazy/packer install, and sources its plugin explicitly (works under--clean).Makefile:make test/make deps/make clean; non-zero exit on failure..gitignore: ignore.tests/.:checkhealthsection + Development/testing section.Verification
Related
Completes the phased plan: #5, #6, #7 (merged) → #8 (this).