Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/options: refactor and rename (non-breaking) #1661

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Jun 9, 2024

  1. lib/types: add nixvimTypes.freeformModule

    `freeformModule { foo = mkOption {}; }` is equivalent to:
    
    ```nix
    submodule {
      freeformType = attrsOf anything;
      options = { foo = mkOption {}; };
    }
    ```
    MattSturgeon committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    94c4cee View commit details
    Browse the repository at this point in the history
  2. lib/options: add rawOpts helpers

    Helper functions to create non-null options that support the raw type.
    MattSturgeon committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    cad8e4f View commit details
    Browse the repository at this point in the history
  3. lib/options: move top-level helpers to nullableOpts

    Where applicable, top-level helper functions are moved into the new
    attrset `nullableOpts`.
    MattSturgeon committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    5f6d76f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9338e10 View commit details
    Browse the repository at this point in the history
  5. lib/options: merge mkNullOrStrLuaOr' (etc)

    The base `mkNullOrLua'` function can just check if `type` is provided.
    MattSturgeon committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    428d96d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b6850ec View commit details
    Browse the repository at this point in the history