plugins/treesitter-context: remove old deprecation warnings

This commit is contained in:
Gaetan Lepage 2023-11-21 18:35:48 +01:00 committed by Gaétan Lepage
parent 563a42c71c
commit 578b1acc71

View file

@ -8,22 +8,6 @@
with lib; let with lib; let
cfg = config.plugins.treesitter-context; cfg = config.plugins.treesitter-context;
in { in {
# Those warnings were introduced on 08/25/2023. TODO: remove them in October 2023.
imports = let
basePluginPath = ["plugins" "treesitter-context"];
in [
(
mkRenamedOptionModule
(basePluginPath ++ ["maxWindowHeight"])
(basePluginPath ++ ["minWindowHeight"])
)
(
mkRemovedOptionModule (basePluginPath ++ ["patterns"]) ""
)
(
mkRemovedOptionModule (basePluginPath ++ ["extractPatterns"]) ""
)
];
options.plugins.treesitter-context = options.plugins.treesitter-context =
helpers.extraOptionsOptions helpers.extraOptionsOptions
// { // {