feat(health,config): Expand :checkhealth and fill config validation gaps#33
Merged
feat(health,config): Expand :checkhealth and fill config validation gaps#33
Conversation
Validate previously unchecked config fields: ui.layout.zindex_base, ui.title.icons.map keys/values, ui.title.context.node_types entries, picker.builtin.preview_lines, and persist.auto.debounce_ms min/max. Empty node_types[ft] entries are dropped after sanitize so the built-in tree-sitter defaults still apply.
Surface enabled providers, picker backend availability against the actual runtime modules (telescope.pickers / fzf-lua / snacks.picker), persist storage path and repo availability, quick/inline close events, and tree-sitter parser status for the current buffer. Auto persist falls back to a warn outside a git repository to reflect that auto save and restore are skipped in that case.
e9c7e4e to
67fb760
Compare
Group reports under separate vim.health.start() headers so each category (environment, providers, picker, persist, ui) is visually distinct in the :checkhealth peekstack output.
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.
Summary
:checkhealth peekstackwith practical runtime info: enabled providers, picker backend (resolved against actual runtime modules), persist storage path, quick/inline close events, and tree-sitter parser statusui.layout.zindex_base,ui.title.icons.map,ui.title.context.node_types,picker.builtin.preview_lines, andpersist.auto.debounce_msChanges
ui.layout.zindex_base,picker.builtin.preview_lines, andpersist.auto.debounce_msui.title.icons.mapkeys/values andui.title.context.node_typesfiletype keys / node-type lists; drop entries that become empty so the built-in tree-sitter defaults still applytests/config_spec.luatelescope.pickers/fzf-lua/snacks.picker), persist storage path, quick/inline close events, and tree-sitter parser status for the current bufferwarnwithinactive outside git repositorywhen it is enabled outside a git repo, matching the runtime no-op behaviortests/health_spec.luafor provider listing, storage path, close events, pickerpreview_lines, non-tablepersist.auto, and outside-repo auto persistvim.health.start()header for each category (environment,providers,picker,persist,ui) so:checkhealth peekstackrenders clearly delimited sections instead of one flat list