plugins/utils/nvim-tree: marked setup options as deprecated (#160)

This commit is contained in:
Gaétan Lepage 2023-02-01 17:54:58 +01:00 committed by GitHub
parent 12bdded4db
commit 337e4c735b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;