plugins/telescope: support non-builtin keymaps

Use the `:Telescope` command instead of relying directly on
`require("telescope.builtin")`.
This commit is contained in:
Matt Sturgeon 2024-05-20 22:00:56 +01:00
parent ef63d3477f
commit bc0db2751c
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -90,7 +90,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
{ {
mode = mapping.mode or "n"; mode = mapping.mode or "n";
inherit key; inherit key;
action.__raw = "require('telescope.builtin').${actionStr}"; action = "<cmd>Telescope ${actionStr}<cr>";
options = { options = {
silent = cfg.keymapsSilent; silent = cfg.keymapsSilent;