misc: remove deprecated/renamed options warnings

This commit is contained in:
Gaetan Lepage 2023-05-19 12:38:24 +02:00 committed by Gaétan Lepage
parent a10b6f02cd
commit 2da04fa4ad
8 changed files with 5 additions and 327 deletions

View file

@ -8,8 +8,6 @@ with lib; let
cfg = config.plugins.bufferline;
helpers = import ../helpers.nix args;
basePluginPath = ["plugins" "bufferline"];
highlightOption = {
fg = helpers.mkNullOrOption types.str "foreground color";
@ -83,38 +81,6 @@ with lib; let
pick_selected = "pickSelected";
};
in {
# Those renamed are from 2023-04-04.
# TODO: remove them in 1-2 months
imports =
[
(
mkRenamedOptionModule
(basePluginPath ++ ["indicatorIcon"])
(basePluginPath ++ ["indicator" "icon"])
)
]
++ (
lists.flatten (
map (
highlightOptionName: let
prefix = basePluginPath ++ ["highlights" highlightOptionName];
in [
(
mkRenamedOptionModule
(prefix ++ ["guifg"])
(prefix ++ ["fg"])
)
(
mkRenamedOptionModule
(prefix ++ ["guibg"])
(prefix ++ ["bg"])
)
]
)
(attrValues highlightOptions)
)
);
options = {
plugins.bufferline =
helpers.extraOptionsOptions