plugins/utils/nvim-tree: marked setup options as deprecated

This commit is contained in:
Gaetan Lepage 2023-01-31 11:53:11 +01:00
parent 8ef6945e75
commit 3697687cbb

View file

@ -16,6 +16,14 @@ in
option = basePluginPath ++ [ "updateFocusedFile" "updateCwd" ];
newOption = basePluginPath ++ [ "updateFocusedFile" "updateRoot" ];
})
(optionWarnings.mkDeprecatedOption {
option = basePluginPath ++ [ "openOnSetup" ];
alternative = [];
})
(optionWarnings.mkDeprecatedOption {
option = basePluginPath ++ [ "ignoreFtOnSetup" ];
alternative = [];
})
];
options.plugins.nvim-tree = {
@ -35,12 +43,14 @@ in
description = "Hijack netrw";
};
# deprecated
openOnSetup = mkOption {
type = types.nullOr types.bool;
default = null;
description = "Open on setup";
};
# deprecated
ignoreFtOnSetup = mkOption {
type = types.nullOr (types.listOf types.str);
default = null;