Skip to content

What's the purpose of 'default' plugin tests? #3569

Answered by MattSturgeon
chelsea6502 asked this question in Q&A
Discussion options

You must be logged in to vote

Many nixvim plugins declare settings options that describe the "plugin default". Especially older plugin modules.

A "plugin default" is different to an actual option default (which is usually null).

The defaults test case exists to test explicitly defining the values that are documented as "plugin defaults".

This is less relevant for plugins that don't declare settings options with "plugin defaults" documented for the sub-options. Generally speaking, more recent plugins don't add explicit sub-options, so they don't need a defaults test case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chelsea6502
Comment options

Answer selected by chelsea6502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants