mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-18 01:35:41 +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;
|
deprecateExtraOptions = true;
|
||||||
optionsRenamedToSettings = [ "defaults" ];
|
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 = {
|
extraOptions = {
|
||||||
keymaps = mkOption {
|
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 {
|
highlightTheme = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
description = "The colorscheme to use for syntax highlighting";
|
description = "The colorscheme to use for syntax highlighting";
|
||||||
|
@ -91,10 +97,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
mode = mapping.mode or "n";
|
mode = mapping.mode or "n";
|
||||||
inherit key;
|
inherit key;
|
||||||
action = "<cmd>Telescope ${actionStr}<cr>";
|
action = "<cmd>Telescope ${actionStr}<cr>";
|
||||||
|
options = mapping.options or { };
|
||||||
options = {
|
|
||||||
silent = cfg.keymapsSilent;
|
|
||||||
} // (mapping.options or { });
|
|
||||||
}
|
}
|
||||||
) cfg.keymaps;
|
) cfg.keymaps;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
options.desc = "Telescope Git Files";
|
options.desc = "Telescope Git Files";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
keymapsSilent = true;
|
|
||||||
highlightTheme = "gruvbox";
|
highlightTheme = "gruvbox";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue