Skip to content

Commit

Permalink
fix: skipping config.theme when it's a table
Browse files Browse the repository at this point in the history
  • Loading branch information
kkharji committed Mar 14, 2022
1 parent d1063d4 commit dbceda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dressing/select/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ M.select = function(config, items, opts, on_choice)

local theme, ttype = nil, type(config.theme)
if ttype == "string" then
theme = themes[string.format("get_%s", config.theme)]()
theme = themes[string.format("get_%s", config.theme)]
elseif ttype == "function" then
theme = config.theme
else
theme = function(s)
return s
return vim.tbl_extend("keep", s, config.theme or {})
end
end

Expand Down

0 comments on commit dbceda6

Please sign in to comment.