reconsider platform opt-in vs opt-out model #329
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#329
Loading…
Add table
Add a link
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?
Problem
Currently, if a user provides any
platformstable in their config, everyplatform not explicitly listed is silently dropped — even if the user just
wants to override one platform and use defaults for the rest. This makes
it easy to accidentally disable platforms without realizing it.
Options to consider
that exists in defaults, emit a
DEBUG-level note (not intrusive).platform = falseto disable.deep-merging user overrides on top, so omitting a platform just means
"use defaults" not "disable".
Option 3 is probably the most ergonomic: users only need to list platforms
they want to customize.
Resolved by #336.