mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-13 20:41:09 +01:00
treewide: remove old deprecation warnings
This commit is contained in:
parent
629f9d75f8
commit
8441008175
72 changed files with 4 additions and 1506 deletions
|
|
@ -13,74 +13,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
# TODO introduced 2024-07-06: remove after 25.05
|
||||
imports =
|
||||
let
|
||||
oldPluginPath = [
|
||||
"plugins"
|
||||
"nvim-colorizer"
|
||||
];
|
||||
newPluginPath = [
|
||||
"plugins"
|
||||
"colorizer"
|
||||
];
|
||||
|
||||
# {
|
||||
# old = ["userDefaultOptions" "RGB"]; }
|
||||
# new = ["settings" "user_default_options" "RGB"];
|
||||
# }
|
||||
userOptsRenames =
|
||||
map
|
||||
(name: {
|
||||
old = [
|
||||
"userDefaultOptions"
|
||||
name
|
||||
];
|
||||
new = [
|
||||
"settings"
|
||||
"user_default_options"
|
||||
name
|
||||
];
|
||||
})
|
||||
[
|
||||
"RGB"
|
||||
"RRGGBB"
|
||||
"names"
|
||||
"RRGGBBAA"
|
||||
"AARRGGBB"
|
||||
"rgb_fn"
|
||||
"hsl_fn"
|
||||
"tailwind"
|
||||
"sass"
|
||||
"virtualtext"
|
||||
"virtualtext_inline"
|
||||
"virtualtext_mode"
|
||||
"always_update"
|
||||
];
|
||||
|
||||
in
|
||||
lib.nixvim.mkSettingsRenamedOptionModules oldPluginPath newPluginPath (
|
||||
[
|
||||
"enable"
|
||||
"package"
|
||||
{
|
||||
old = "fileTypes";
|
||||
new = [
|
||||
"settings"
|
||||
"filetypes"
|
||||
];
|
||||
}
|
||||
{
|
||||
old = "bufTypes";
|
||||
new = [
|
||||
"settings"
|
||||
"buftypes"
|
||||
];
|
||||
}
|
||||
]
|
||||
++ userOptsRenames
|
||||
);
|
||||
|
||||
settingsOptions =
|
||||
let
|
||||
colorizerOptions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue