NvChad Telescope Theme
This code snippet make the default theme telescope look like the default NvChad telescope theme:
user/init.lua
:
return {
default_theme = {
colors = function(C)
C.telescope_green = C.green
C.telescope_red = C.red
C.telescope_fg = C.fg
C.telescope_bg = C.black_1
C.telescope_bg_alt = C.bg_1
return C
end,
highlights = function(hl)
local C = require "default_theme.colors"
hl.TelescopeBorder = { fg = C.telescope_bg_alt, bg = C.telescope_bg }
hl.TelescopeNormal = { bg = C.telescope_bg }
hl.TelescopePreviewBorder = { fg = C.telescope_bg, bg = C.telescope_bg }
hl.TelescopePreviewNormal = { bg = C.telescope_bg }
hl.TelescopePreviewTitle = { fg = C.telescope_bg, bg = C.telescope_green }
hl.TelescopePromptBorder = { fg = C.telescope_bg_alt, bg = C.telescope_bg_alt }
hl.TelescopePromptNormal = { fg = C.telescope_fg, bg = C.telescope_bg_alt }
hl.TelescopePromptPrefix = { fg = C.telescope_red, bg = C.telescope_bg_alt }
hl.TelescopePromptTitle = { fg = C.telescope_bg, bg = C.telescope_red }
hl.TelescopeResultsBorder = { fg = C.telescope_bg, bg = C.telescope_bg }
hl.TelescopeResultsNormal = { bg = C.telescope_bg }
hl.TelescopeResultsTitle = { fg = C.telescope_bg, bg = C.telescope_bg }
return hl
end,
},
}