lib/deprecation: init with mkDeprecatedSubOptionModule

Similar to `lib.mkRemovedOptionModule` but tweaked to work with
sub-options (e.g. settings options).

Also uses warnings instead of assertions.
This commit is contained in:
Matt Sturgeon 2024-06-24 12:16:54 +01:00
parent 66c8592b31
commit 54d118869b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 51 additions and 0 deletions

View file

@ -9,6 +9,7 @@ let
nixvimTypes = import ./types.nix { inherit lib nixvimOptions; };
nixvimUtils = import ./utils.nix { inherit lib nixvimTypes _nixvimTests; };
nixvimOptions = import ./options.nix { inherit lib nixvimTypes nixvimUtils; };
nixvimDeprecation = import ./deprecation.nix { inherit lib; };
inherit (import ./to-lua.nix { inherit lib; }) toLuaObject;
in
{
@ -30,3 +31,4 @@ in
// nixvimUtils
// nixvimOptions
// nixvimBuilders
// nixvimDeprecation