From c1951b37229f6628a07e1290430eeb83e532dc90 Mon Sep 17 00:00:00 2001 From: max397574 <81827001+max397574@users.noreply.github.com> Date: Mon, 29 Nov 2021 22:47:19 +0100 Subject: add Normal highlights for prompt and results (#1514) * feat(highlight): add Normal highlights for prompt and results * fix(highlight): link to TelescopeNormal by default --- lua/telescope/pickers.lua | 4 ++-- plugin/telescope.vim | 6 +++--- 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. -- cgit v1.2.3