docs: use mkRenamedOptionModule instead of RemovedOption

This commit is contained in:
Ching Pei Yang 2024-02-19 11:10:44 +01:00
parent fc511966f0
commit 0b9e5e8f37
No known key found for this signature in database
GPG key ID: 062FBBCE1D0C5DD9

View file

@ -3,12 +3,11 @@
lib, lib,
... ...
}: let }: let
inherit (lib) mkRemovedOptionModule mkEnableOption mkOption mapAttrs toUpper nvim types; inherit (lib) mkRemovedOptionModule mkEnableOption mkOption mapAttrs toUpper nvim types mkRenamedOptionModule;
rawLua = lua: {__raw = lua;}; rawLua = lua: {__raw = lua;};
in { in {
imports = [ imports = [
(mkRemovedOptionModule ["vim" "visuals" "fidget-nvim" "align" "bottom"] (mkRenamedOptionModule ["vim" "visuals" "fidget-nvim" "align" "bottom"] ["vim" "visuals" "fidget-nvim" "setupOpts" "notification" "window" "align"])
"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.")
(mkRemovedOptionModule ["vim" "visuals" "fidget-nvim" "align" "right"] (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.") "Option `vim.fidget-nvim.align.right` has been removed and does not have an equivalent replacement in rewritten fidget.nvim configuration.")
]; ];