Skip to content

Commit 9b8e944

Browse files
authored
feat: Add theme options to select Telescope themes (#710)
* feat: Add theme options to select Telescope themes Added theme options to the M.pick function to allow selection of dropdown, ivy, and cursor themes. * refactor: remove theme argument and integrate into opts Simplified code by removing the theme argument and integrating it into opts. * fix: correct default theme settings Fixed to apply the default theme when opts and opts.theme are not set.
1 parent 1b1542b commit 9b8e944

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/CopilotChat/integrations/telescope.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ function M.pick(pick_actions, opts)
1919
end
2020

2121
utils.return_to_normal_mode()
22-
opts = themes.get_dropdown(opts or {})
22+
23+
if not (opts and opts.theme) then
24+
opts = themes.get_dropdown(opts or {})
25+
end
26+
2327
pickers
2428
.new(opts, {
2529
prompt_title = pick_actions.prompt,

0 commit comments

Comments
 (0)