plugins/telescope: remove redundant keymapsSilent option

This commit is contained in:
Matt Sturgeon 2024-05-24 23:55:24 +01:00
parent bc0db2751c
commit 56d39f54fe
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 14 additions and 12 deletions

View file

@ -20,7 +20,19 @@ helpers.neovim-plugin.mkNeovimPlugin config {
deprecateExtraOptions = true;
optionsRenamedToSettings = [ "defaults" ];
imports = [ ./extensions ];
imports = [
./extensions
# TODO introduced 2024-05-24: remove 2024-08-24
(mkRemovedOptionModule
[
"plugins"
"telescope"
"keymapsSilent"
]
"This option no longer has any effect now that the `plugin.telescope.keymaps` implementation uses `<cmd>`."
)
];
extraOptions = {
keymaps = mkOption {
@ -46,12 +58,6 @@ helpers.neovim-plugin.mkNeovimPlugin config {
};
};
keymapsSilent = mkOption {
type = types.bool;
description = "Whether telescope keymaps should be silent";
default = false;
};
highlightTheme = mkOption {
type = types.nullOr types.str;
description = "The colorscheme to use for syntax highlighting";
@ -91,10 +97,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
mode = mapping.mode or "n";
inherit key;
action = "<cmd>Telescope ${actionStr}<cr>";
options = {
silent = cfg.keymapsSilent;
} // (mapping.options or { });
options = mapping.options or { };
}
) cfg.keymaps;

View file

@ -14,7 +14,6 @@
options.desc = "Telescope Git Files";
};
};
keymapsSilent = true;
highlightTheme = "gruvbox";
};
};