refactor: centralize integration metadata #146
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
barrettruth/diffs.nvim#146
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracked By
Context
This is pre-v0.4.0 cleanup that should land on
mainbefore the hard-removal branch. It must preserve current v0.3.x deprecation behavior, including temporary table forms for integrations.Problem
Integration ownership is split across config defaults, validation/migration, filetype computation, plugin bootstrap hooks, and runtime attach checks. The same integration set is repeated across:
lua/diffs/config.luaplugin/diffs.lualua/diffs/runtime/attach.luaThat makes the eventual hard-removal review harder because integration metadata is duplicated before and after normalization.
Scope
Extract integration keys, defaults, and filetype patterns into a small internal module. Do not rewrite integration implementations. Preserve current table-to-boolean deprecation/migration behavior.
Acceptance Criteria
config.new()returns the same integration defaultsSuggested Verification