visuals/fidget: add mkRemovedOptionModule for the old configuration options

This commit is contained in:
Frothy 2024-02-19 03:17:01 -05:00
parent adde1f08e6
commit fc511966f0

View file

@ -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]";