diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-10-26 15:14:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-26 15:14:33 +0100 |
| commit | 580932129003b7064d32337a9f25a168ff2f158e (patch) | |
| tree | 8a3e28c957ad819229602c17f5bac8392c9f9779 | |
| parent | 782d802d44077e07f80189560f91c86370f11e39 (diff) | |
feat: separate higlight for titles in picker windows (#1362)
- requires nvim-lua/plenary.nvim#260
| -rw-r--r-- | lua/telescope/pickers.lua | 3 | ||||
| -rw-r--r-- | plugin/telescope.vim | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 33129ca..a283176 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -308,13 +308,16 @@ function Picker:find() popup_opts.results.minheight = popup_opts.results.height popup_opts.results.highlight = "TelescopeNormal" 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.borderhighlight = "TelescopePromptBorder" + popup_opts.prompt.titlehighlight = "TelescopePromptTitle" if popup_opts.preview then popup_opts.preview.minheight = popup_opts.preview.height popup_opts.preview.highlight = "TelescopeNormal" popup_opts.preview.borderhighlight = "TelescopePreviewBorder" + popup_opts.preview.titlehighlight = "TelescopePreviewTitle" end -- local results_win, results_opts = popup.create("", popup_opts.results) diff --git a/plugin/telescope.vim b/plugin/telescope.vim index b64967d..095a1ad 100644 --- a/plugin/telescope.vim +++ b/plugin/telescope.vim @@ -27,6 +27,14 @@ highlight default link TelescopePromptBorder TelescopeBorder highlight default link TelescopeResultsBorder TelescopeBorder highlight default link TelescopePreviewBorder TelescopeBorder +" Title highlight groups. +" Use TelescopeTitle to override the default. +" Otherwise set them specifically +highlight default link TelescopeTitle TelescopeBorder +highlight default link TelescopePromptTitle TelescopeTitle +highlight default link TelescopeResultsTitle TelescopeTitle +highlight default link TelescopePreviewTitle TelescopeTitle + " Used for highlighting characters that you match. highlight default link TelescopeMatching Special |
