summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
authorLuke Kershaw <35707277+l-kershaw@users.noreply.github.com>2021-07-02 07:50:55 +0100
committerGitHub <noreply@github.com>2021-07-02 08:50:55 +0200
commit50001d4965af3c95614b1423ab6d130068319cd9 (patch)
tree9120d114b4713259ba9ab10a70261a98fe9c0b3f /lua/telescope/pickers.lua
parent5a53ec5c2fdab10ca8775d3979b1a85e63d57953 (diff)
fix: table number option extend (#947)
* fix: prevent error when overriding tables with numbers Fixes #944 - refactor `config.smarter_depth_2_extend` - use `config.smarter_depth_2_extend` for setting `layout_config` in `Picker:new` * test: check that can override a table with a number for layout configuration
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 28046e5..f8a0eea 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -99,7 +99,7 @@ function Picker:new(opts)
selection_strategy = get_default(opts.selection_strategy, config.values.selection_strategy),
layout_strategy = layout_strategy,
- layout_config = vim.tbl_deep_extend("keep", opts.layout_config or {}, config.values.layout_config or {}),
+ layout_config = config.smarter_depth_2_extend(opts.layout_config or {}, config.values.layout_config or {}),
window = {
winblend = get_default(opts.winblend, config.values.winblend),