mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue