Skip to content

Commit

Permalink
fix: do not ignore mappings from setup() when attach_mappings provided
Browse files Browse the repository at this point in the history
  • Loading branch information
molecule-man committed Jul 21, 2023
1 parent 47c755d commit 9e1cfc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/telescope/builtin/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,14 @@ local apply_config = function(mod)
end
end

if defaults.attach_mappings and opts.attach_mappings then
local opts_attach = opts.attach_mappings
opts.attach_mappings = function(prompt_bufnr, map)
defaults.attach_mappings(prompt_bufnr, map)
return opts_attach(prompt_bufnr, map)
end
end

v(vim.tbl_extend("force", defaults, opts))
end
end
Expand Down

0 comments on commit 9e1cfc7

Please sign in to comment.