mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 04:04:34 +02:00
plugins/telescope: remove redundant keymapsSilent
option
This commit is contained in:
parent
bc0db2751c
commit
56d39f54fe
2 changed files with 14 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
options.desc = "Telescope Git Files";
|
||||
};
|
||||
};
|
||||
keymapsSilent = true;
|
||||
highlightTheme = "gruvbox";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue