Skip to content

Commit

Permalink
plugins/utils/nvim-tree: marked setup options as deprecated (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Feb 1, 2023
1 parent 12bdded commit 337e4c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/utils/nvim-tree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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;
Expand Down

0 comments on commit 337e4c7

Please sign in to comment.