mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
misc: remove deprecated/renamed options warnings
This commit is contained in:
parent
a10b6f02cd
commit
2da04fa4ad
8 changed files with 5 additions and 327 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue