Skip to content

Commit cce4469

Browse files
A-Lamiamehalter
authored andcommitted
feat(telescope): add opts for background configurations
1 parent cf3ff3a commit cce4469

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/astrotheme/groups/plugins/telescope.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local function callback()
1+
local function callback(opts)
22
return {
33
TelescopeResultsTitle = { fg = C.green },
44
TelescopePromptTitle = { fg = C.blue },
@@ -11,10 +11,10 @@ local function callback()
1111
TelescopeSelection = { bg = C.surface1 },
1212
TelescopeMultiSelection = { fg = C.blue },
1313
TelescopeMultiIcon = { fg = C.blue },
14-
TelescopeNormal = { fg = C.text, bg = C.base },
15-
TelescopePreviewNormal = { fg = C.text, bg = C.base },
16-
TelescopePromptNormal = { fg = C.text, bg = C.base },
17-
TelescopeResultsNormal = { fg = C.text, bg = C.base },
14+
TelescopeNormal = { fg = C.text, bg = opts.floating and C.mantle or C.base },
15+
TelescopePreviewNormal = { fg = C.text, bg = opts.floating and C.mantle or C.base },
16+
TelescopePromptNormal = { fg = C.text, bg = opts.floating and C.mantle or C.base },
17+
TelescopeResultsNormal = { fg = C.text, bg = opts.floating and C.mantle or C.base },
1818
TelescopeBorder = { fg = C.text },
1919
TelescopeTitle = { fg = C.text },
2020
TelescopePromptCounter = { fg = C.subtext0 },

0 commit comments

Comments
 (0)