diff --git a/lua/telescope/builtin/__files.lua b/lua/telescope/builtin/__files.lua index 746ddd8313..d442b3bada 100644 --- a/lua/telescope/builtin/__files.lua +++ b/lua/telescope/builtin/__files.lua @@ -186,7 +186,7 @@ files.live_grep = function(opts) -- TODO: It would be cool to use `--json` output for this -- and then we could get the highlight positions directly. sorter = sorters.highlighter_only(opts), - attach_mappings = function(_, map) + attach_mappings = opts.attach_mappings or function(_, map) map("i", "", actions.to_fuzzy_refine) return true end, diff --git a/lua/telescope/builtin/__lsp.lua b/lua/telescope/builtin/__lsp.lua index a0220933bc..d82733580f 100644 --- a/lua/telescope/builtin/__lsp.lua +++ b/lua/telescope/builtin/__lsp.lua @@ -447,7 +447,7 @@ M.dynamic_workspace_symbols = function(opts) }, previewer = conf.qflist_previewer(opts), sorter = sorters.highlighter_only(opts), - attach_mappings = function(_, map) + attach_mappings = opts.attach_mappings or function(_, map) map("i", "", actions.to_fuzzy_refine) return true end,