@@ -48,6 +48,13 @@ function M.setup()
48
48
})
49
49
end
50
50
51
+ local borderless_telescope = opts .borderless_telescope
52
+ local telescope_style = " "
53
+ if type (opts .borderless_telescope ) == " table" then
54
+ borderless_telescope = not opts .borderless_telescope .border
55
+ telescope_style = opts .borderless_telescope .style
56
+ end
57
+
51
58
theme .highlights = {
52
59
Comment = { fg = t .grey , italic = opts .italic_comments },
53
60
ColorColumn = { bg = t .bgHighlight },
@@ -343,16 +350,24 @@ function M.setup()
343
350
[" @keyword" ] = { link = " Keyword" },
344
351
}
345
352
346
- if opts . borderless_telescope then
353
+ if borderless_telescope then
347
354
theme .highlights .TelescopeBorder = { fg = t .bgAlt , bg = t .bgAlt }
348
355
theme .highlights .TelescopeNormal = { bg = t .bgAlt }
349
356
theme .highlights .TelescopePreviewBorder = { fg = t .bgAlt , bg = t .bgAlt }
350
357
theme .highlights .TelescopePreviewNormal = { bg = t .bgAlt }
351
- theme .highlights .TelescopePreviewTitle = { fg = t .bgAlt , bg = t .green }
352
- theme .highlights .TelescopePromptBorder = { fg = t .bgAlt , bg = t .bgAlt }
353
- theme .highlights .TelescopePromptNormal = { fg = t .fg , bg = t .bgAlt }
354
- theme .highlights .TelescopePromptPrefix = { fg = t .red , bg = t .bgAlt }
355
- theme .highlights .TelescopePromptTitle = { fg = t .bgAlt , bg = t .red }
358
+ if telescope_style == " nvchad" then
359
+ theme .highlights .TelescopePreviewTitle = { fg = t .bgAlt , bg = t .green , bold = true }
360
+ theme .highlights .TelescopePromptBorder = { fg = t .bgHighlight , bg = t .bgHighlight }
361
+ theme .highlights .TelescopePromptNormal = { fg = t .fg , bg = t .bgHighlight }
362
+ theme .highlights .TelescopePromptPrefix = { fg = t .red , bg = t .bgHighlight }
363
+ theme .highlights .TelescopePromptTitle = { fg = t .bgAlt , bg = t .red , bold = true }
364
+ else
365
+ theme .highlights .TelescopePreviewTitle = { fg = t .bgAlt , bg = t .green }
366
+ theme .highlights .TelescopePromptBorder = { fg = t .bgAlt , bg = t .bgAlt }
367
+ theme .highlights .TelescopePromptNormal = { fg = t .fg , bg = t .bgAlt }
368
+ theme .highlights .TelescopePromptPrefix = { fg = t .red , bg = t .bgAlt }
369
+ theme .highlights .TelescopePromptTitle = { fg = t .bgAlt , bg = t .red }
370
+ end
356
371
theme .highlights .TelescopeResultsBorder = { fg = t .bgAlt , bg = t .bgAlt }
357
372
theme .highlights .TelescopeResultsNormal = { bg = t .bgAlt }
358
373
theme .highlights .TelescopeResultsTitle = { fg = t .bgAlt , bg = t .bgAlt }
0 commit comments