Skip to content

Validate configuration against schema #1166

Closed
@gegoune

Description

@gegoune

Is your feature request related to a problem? Please describe.
Keys of a table passed into setup() function are plenty, nested and can be very easily misplaced by users. There were issues reported in the past which were simply result of wrong nesting.

Describe the solution you'd like
It would greatly help if plugin was validating table against schema ensuring passed in configuration is valid.

Describe alternatives you've considered
Do nothing.

Additional context
Edit: this is how b0o achieved it in incline https://github.com/b0o/incline.nvim/blob/main/lua/incline/config/schema.lua.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions