summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax397574 <81827001+max397574@users.noreply.github.com>2021-11-29 22:47:19 +0100
committerGitHub <noreply@github.com>2021-11-29 21:47:19 +0000
commitc1951b37229f6628a07e1290430eeb83e532dc90 (patch)
treee07a25e0204d6deecf3a047b5dd8d0d4024cedfc
parent22e59556f95f8021381c21f09d8cfc54d47db1bc (diff)
add Normal highlights for prompt and results (#1514)
* feat(highlight): add Normal highlights for prompt and results * fix(highlight): link to TelescopeNormal by default
-rw-r--r--lua/telescope/pickers.lua4
-rw-r--r--plugin/telescope.vim6
2 files changed, 5 insertions, 5 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 618a6e1..92482db 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -320,11 +320,11 @@ function Picker:find()
-- `popup.nvim` massaging so people don't have to remember minheight shenanigans
popup_opts.results.minheight = popup_opts.results.height
- popup_opts.results.highlight = "TelescopeNormal"
+ popup_opts.results.highlight = "TelescopeResultsNormal"
popup_opts.results.borderhighlight = "TelescopeResultsBorder"
popup_opts.results.titlehighlight = "TelescopeResultsTitle"
popup_opts.prompt.minheight = popup_opts.prompt.height
- popup_opts.prompt.highlight = "TelescopeNormal"
+ popup_opts.prompt.highlight = "TelescopePromptNormal"
popup_opts.prompt.borderhighlight = "TelescopePromptBorder"
popup_opts.prompt.titlehighlight = "TelescopePromptTitle"
if popup_opts.preview then
diff --git a/plugin/telescope.vim b/plugin/telescope.vim
index 02e7520..be8e3e0 100644
--- a/plugin/telescope.vim
+++ b/plugin/telescope.vim
@@ -15,9 +15,9 @@ highlight default link TelescopeMultiSelection Type
" "Normal" in the floating windows created by telescope.
highlight default link TelescopeNormal Normal
-
-" "Normal" in the preview floating windows created by telescope.
-highlight default link TelescopePreviewNormal Normal
+highlight default link TelescopePreviewNormal TelescopeNormal
+highlight default link TelescopePromptNormal TelescopeNormal
+highlight default link TelescopeResultsNormal TelescopeNormal
" Border highlight groups.
" Use TelescopeBorder to override the default.