Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit dbceda6

Browse files
committed
fix: skipping config.theme when it's a table
1 parent d1063d4 commit dbceda6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/dressing/select/telescope.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ M.select = function(config, items, opts, on_choice)
2525

2626
local theme, ttype = nil, type(config.theme)
2727
if ttype == "string" then
28-
theme = themes[string.format("get_%s", config.theme)]()
28+
theme = themes[string.format("get_%s", config.theme)]
2929
elseif ttype == "function" then
3030
theme = config.theme
3131
else
3232
theme = function(s)
33-
return s
33+
return vim.tbl_extend("keep", s, config.theme or {})
3434
end
3535
end
3636

0 commit comments

Comments
 (0)