hotfix: should have been there but wasnt
ref: https://github.com/nvim-telescope/telescope.nvim/issues/1145#issuecomment-903161099
This commit is contained in:
@@ -391,12 +391,14 @@ local apply_config = function(mod)
|
|||||||
for k, v in pairs(mod) do
|
for k, v in pairs(mod) do
|
||||||
mod[k] = function(opts)
|
mod[k] = function(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
local defaults = {}
|
|
||||||
|
|
||||||
local pconf = pickers_conf[k] or {}
|
local pconf = pickers_conf[k] or {}
|
||||||
|
local defaults = (function()
|
||||||
if pconf.theme then
|
if pconf.theme then
|
||||||
defaults = require("telescope.themes")["get_" .. pconf.theme](pconf)
|
return require("telescope.themes")["get_" .. pconf.theme](pconf)
|
||||||
end
|
end
|
||||||
|
return vim.deepcopy(pconf)
|
||||||
|
end)()
|
||||||
|
|
||||||
if pconf.mappings then
|
if pconf.mappings then
|
||||||
defaults.attach_mappings = function(_, map)
|
defaults.attach_mappings = function(_, map)
|
||||||
for mode, tbl in pairs(pconf.mappings) do
|
for mode, tbl in pairs(pconf.mappings) do
|
||||||
|
|||||||
Reference in New Issue
Block a user