From 0b9e5e8f37ce5cb046818457587b36d4325d142c Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Mon, 19 Feb 2024 11:10:44 +0100 Subject: [PATCH] docs: use mkRenamedOptionModule instead of RemovedOption --- modules/visuals/fidget/fidget.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/visuals/fidget/fidget.nix b/modules/visuals/fidget/fidget.nix index 5968d10..6b88a4b 100644 --- a/modules/visuals/fidget/fidget.nix +++ b/modules/visuals/fidget/fidget.nix @@ -3,12 +3,11 @@ lib, ... }: let - inherit (lib) mkRemovedOptionModule mkEnableOption mkOption mapAttrs toUpper nvim types; + inherit (lib) mkRemovedOptionModule mkEnableOption mkOption mapAttrs toUpper nvim types mkRenamedOptionModule; rawLua = lua: {__raw = lua;}; in { imports = [ - (mkRemovedOptionModule ["vim" "visuals" "fidget-nvim" "align" "bottom"] - "Option `vim.fidget-nvim.align.bottom` has been removed in favor of `vim.fidget-nvim.notification.window.align`, which supports the `bottom` value for the same purpose.") + (mkRenamedOptionModule ["vim" "visuals" "fidget-nvim" "align" "bottom"] ["vim" "visuals" "fidget-nvim" "setupOpts" "notification" "window" "align"]) (mkRemovedOptionModule ["vim" "visuals" "fidget-nvim" "align" "right"] "Option `vim.fidget-nvim.align.right` has been removed and does not have an equivalent replacement in rewritten fidget.nvim configuration.") ];