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