mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2025-12-06 06:46:10 +00:00
fix: do not ignore mappings from setup() when attach_mappings provided (#2613)
This commit is contained in:
committed by
GitHub
parent
47c755d737
commit
597a3cc889
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user