add Normal highlights for prompt and results (#1514)

* feat(highlight): add Normal highlights for prompt and results

* fix(highlight): link to TelescopeNormal by default
This commit is contained in:
max397574
2021-11-29 22:47:19 +01:00
committed by GitHub
parent 22e59556f9
commit c1951b3722
2 changed files with 5 additions and 5 deletions

View File

@@ -320,11 +320,11 @@ function Picker:find()
-- `popup.nvim` massaging so people don't have to remember minheight shenanigans -- `popup.nvim` massaging so people don't have to remember minheight shenanigans
popup_opts.results.minheight = popup_opts.results.height 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.borderhighlight = "TelescopeResultsBorder"
popup_opts.results.titlehighlight = "TelescopeResultsTitle" popup_opts.results.titlehighlight = "TelescopeResultsTitle"
popup_opts.prompt.minheight = popup_opts.prompt.height 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.borderhighlight = "TelescopePromptBorder"
popup_opts.prompt.titlehighlight = "TelescopePromptTitle" popup_opts.prompt.titlehighlight = "TelescopePromptTitle"
if popup_opts.preview then if popup_opts.preview then

View File

@@ -15,9 +15,9 @@ highlight default link TelescopeMultiSelection Type
" "Normal" in the floating windows created by telescope. " "Normal" in the floating windows created by telescope.
highlight default link TelescopeNormal Normal highlight default link TelescopeNormal Normal
highlight default link TelescopePreviewNormal TelescopeNormal
" "Normal" in the preview floating windows created by telescope. highlight default link TelescopePromptNormal TelescopeNormal
highlight default link TelescopePreviewNormal Normal highlight default link TelescopeResultsNormal TelescopeNormal
" Border highlight groups. " Border highlight groups.
" Use TelescopeBorder to override the default. " Use TelescopeBorder to override the default.