Skip to content

Commit

Permalink
add Normal highlights for prompt and results (nvim-telescope#1514)
Browse files Browse the repository at this point in the history
* feat(highlight): add Normal highlights for prompt and results

* fix(highlight): link to TelescopeNormal by default
  • Loading branch information
max397574 authored Nov 29, 2021
1 parent 22e5955 commit c1951b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lua/telescope/pickers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions plugin/telescope.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c1951b3

Please sign in to comment.