mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +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
|
@ -3,12 +3,10 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
} @ args:
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.floaterm;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
optionWarnings = import ../../lib/option-warnings.nix args;
|
||||
basePluginPath = ["plugins" "floaterm"];
|
||||
|
||||
settings = {
|
||||
shell = {
|
||||
|
@ -150,25 +148,6 @@ with lib; let
|
|||
};
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["winType"];
|
||||
newOption = basePluginPath ++ ["wintype"];
|
||||
})
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["winWidth"];
|
||||
newOption = basePluginPath ++ ["width"];
|
||||
})
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["winHeight"];
|
||||
newOption = basePluginPath ++ ["height"];
|
||||
})
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["borderChars"];
|
||||
newOption = basePluginPath ++ ["borderchars"];
|
||||
})
|
||||
];
|
||||
|
||||
options.plugins.floaterm = let
|
||||
# Misc options
|
||||
# `OPTION = VALUE`
|
||||
|
|
|
@ -4,54 +4,8 @@
|
|||
...
|
||||
} @ args:
|
||||
with lib;
|
||||
with import ../helpers.nix {inherit lib;}; let
|
||||
optionWarnings = import ../../lib/option-warnings.nix args;
|
||||
basePluginPath = ["plugins" "magma-nvim"];
|
||||
in
|
||||
{
|
||||
# Those renames happended on 03-24-2023 (TODO remove in 1-2 months)
|
||||
imports =
|
||||
map (
|
||||
{
|
||||
oldName,
|
||||
newName,
|
||||
}:
|
||||
optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ [oldName];
|
||||
newOption = basePluginPath ++ [newName];
|
||||
}
|
||||
) [
|
||||
{
|
||||
oldName = "image_provider";
|
||||
newName = "imageProvider";
|
||||
}
|
||||
{
|
||||
oldName = "automatically_open_output";
|
||||
newName = "automaticallyOpenOutput";
|
||||
}
|
||||
{
|
||||
oldName = "wrap_output";
|
||||
newName = "wrapOutput";
|
||||
}
|
||||
{
|
||||
oldName = "output_window_borders";
|
||||
newName = "outputWindowBorders";
|
||||
}
|
||||
{
|
||||
oldName = "cell_highlight_group";
|
||||
newName = "cellHighlightGroup";
|
||||
}
|
||||
{
|
||||
oldName = "save_path";
|
||||
newName = "savePath";
|
||||
}
|
||||
{
|
||||
oldName = "show_mimetype_debug";
|
||||
newName = "showMimetypeDebug";
|
||||
}
|
||||
];
|
||||
}
|
||||
// mkPlugin args {
|
||||
with import ../helpers.nix {inherit lib;};
|
||||
mkPlugin args {
|
||||
name = "magma-nvim";
|
||||
description = "magma-nvim";
|
||||
package = pkgs.vimPlugins.magma-nvim-goose;
|
||||
|
|
|
@ -3,33 +3,11 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
} @ args:
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.mark-radar;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
optionWarnings = import ../../lib/option-warnings.nix args;
|
||||
basePluginPath = ["plugins" "mark-radar"];
|
||||
in {
|
||||
# Those renames were done on 03-24-2023
|
||||
imports = [
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["highlight_background"];
|
||||
newOption = basePluginPath ++ ["backgroundHighlight"];
|
||||
})
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["background_highlight_group"];
|
||||
newOption = basePluginPath ++ ["backgroundHighlightGroup"];
|
||||
})
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["highlight_group"];
|
||||
newOption = basePluginPath ++ ["highlightGroup"];
|
||||
})
|
||||
(optionWarnings.mkRenamedOption {
|
||||
option = basePluginPath ++ ["set_default_keybinds"];
|
||||
newOption = basePluginPath ++ ["setDefaultMappings"];
|
||||
})
|
||||
];
|
||||
|
||||
options.plugins.mark-radar =
|
||||
helpers.extraOptionsOptions
|
||||
// {
|
||||
|
|
|
@ -7,21 +7,11 @@
|
|||
with lib; let
|
||||
cfg = config.plugins.notify;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
optionWarnings = import ../../lib/option-warnings.nix {inherit lib;};
|
||||
basePluginPath = ["plugins" "notify"];
|
||||
icon = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
(optionWarnings.mkRenamedOption {
|
||||
# 2023-03-24
|
||||
option = basePluginPath ++ ["backgroundColor"];
|
||||
newOption = basePluginPath ++ ["backgroundColour"];
|
||||
})
|
||||
];
|
||||
|
||||
options.plugins.notify = {
|
||||
enable = mkEnableOption "notify";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue