Skip to content

Commit 678ac8b

Browse files
authored
Fix config.options.picker_options being ignored (#281)
1 parent 7cf0440 commit 678ac8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/zk/ui.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ local M = {}
77
---@param options? table containing {picker}, {title}, {multi_select} keys
88
---@param cb function
99
function M.pick_notes(notes, options, cb)
10-
options = vim.tbl_extend(
10+
options = vim.tbl_deep_extend(
1111
"force",
1212
{ title = "Zk Notes", picker = config.options.picker, multi_select = true },
1313
config.options.picker_options or {},
@@ -21,7 +21,7 @@ end
2121
---@param options? table containing {picker}, {title}, {multi_select} keys
2222
---@param cb function
2323
function M.pick_tags(tags, options, cb)
24-
options = vim.tbl_extend(
24+
options = vim.tbl_deep_extend(
2525
"force",
2626
{ title = "Zk Tags", picker = config.options.picker, multi_select = true },
2727
config.options.picker_options or {},
@@ -35,7 +35,7 @@ end
3535
---@param options table the same options that are use for pick_notes
3636
---@return table api selection
3737
function M.get_pick_notes_list_api_selection(options)
38-
options = vim.tbl_extend(
38+
options = vim.tbl_deep_extend(
3939
"force",
4040
{ picker = config.options.picker },
4141
config.options.picker_options or {},

0 commit comments

Comments
 (0)