Skip to content

Commit ba4986e

Browse files
sefluekxu111
andcommitted
fix: respect user's telescope layout configuration
Removes hardcoded layout_config from all four telescope pickers so user's telescope.setup() applies. Closes #41. Co-authored-by: Kenneth Xu <kxu111@users.noreply.github.com>
1 parent 3cbf3fa commit ba4986e

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

lua/telescope-orgmode/adapters/telescope.lua

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ function M.search_headings(user_opts)
241241
finder = initial_finder,
242242
sorter = conf.generic_sorter(opts),
243243
previewer = conf.grep_previewer(opts),
244-
layout_config = {
245-
width = 0.95,
246-
height = 0.95,
247-
preview_width = 0.4,
248-
},
249244
attach_mappings = function(_, map)
250245
attach_common_mappings(map, state, opts)
251246
return true
@@ -312,11 +307,6 @@ function M.refile_heading(user_opts)
312307
finder = initial_finder,
313308
sorter = conf.generic_sorter(opts),
314309
previewer = conf.grep_previewer(opts),
315-
layout_config = {
316-
width = 0.95,
317-
height = 0.95,
318-
preview_width = 0.4,
319-
},
320310
attach_mappings = function(_, map)
321311
action_set.select:replace(refile_action)
322312
attach_common_mappings(map, state, opts)
@@ -383,11 +373,6 @@ function M.insert_link(user_opts)
383373
finder = initial_finder,
384374
sorter = conf.generic_sorter(opts),
385375
previewer = conf.grep_previewer(opts),
386-
layout_config = {
387-
width = 0.95,
388-
height = 0.95,
389-
preview_width = 0.4,
390-
},
391376
attach_mappings = function(_, map)
392377
action_set.select:replace(insert_action)
393378
attach_common_mappings(map, state, opts)
@@ -445,11 +430,6 @@ function M.search_tags(user_opts)
445430
}),
446431
sorter = conf.generic_sorter(opts),
447432
previewer = create_tag_previewer(),
448-
layout_config = {
449-
width = 0.95,
450-
height = 0.95,
451-
preview_width = 0.4,
452-
},
453433
attach_mappings = function(prompt_bufnr, map)
454434
-- Toggle sort mode
455435
local toggle_sort_binding = keybindings.bindings.toggle_tag_sort

0 commit comments

Comments
 (0)