From fc511966f0b97596c315a173c1fa6070493be5a2 Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Mon, 19 Feb 2024 03:17:01 -0500 Subject: [PATCH] visuals/fidget: add `mkRemovedOptionModule` for the old configuration options --- modules/visuals/fidget/fidget.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/visuals/fidget/fidget.nix b/modules/visuals/fidget/fidget.nix index efa8932..5968d10 100644 --- a/modules/visuals/fidget/fidget.nix +++ b/modules/visuals/fidget/fidget.nix @@ -3,9 +3,16 @@ lib, ... }: let - inherit (lib) mkEnableOption mkOption mapAttrs toUpper nvim types; + inherit (lib) mkRemovedOptionModule mkEnableOption mkOption mapAttrs toUpper nvim types; 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.") + (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.") + ]; + options.vim.visuals.fidget-nvim = { enable = mkEnableOption "nvim LSP UI element [fidget-nvim]";