summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-12-03 14:36:32 +0100
committerSimon Hauser <Simon-Hauser@outlook.de>2021-12-03 14:36:32 +0100
commit4e075bf924dcd1127380a00b38a8fb567749f72a (patch)
tree618a4802806d6a8edf0b9709d0547653bd097d16
parent4b3efd2341929969da8cbfca82f7bf684d5aa233 (diff)
feat: highlight group for counter: TelescopePromptCounter
fix #1540
-rw-r--r--lua/telescope/pickers.lua2
-rw-r--r--plugin/telescope.vim2
2 files changed, 3 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index c4cdd53..41f010c 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -1095,7 +1095,7 @@ function Picker:get_status_updater(prompt_win, prompt_bufnr)
local text = self:get_status_text(opts)
vim.api.nvim_buf_clear_namespace(prompt_bufnr, ns_telescope_prompt, 0, -1)
vim.api.nvim_buf_set_extmark(prompt_bufnr, ns_telescope_prompt, 0, 0, {
- virt_text = { { text, "NonText" } },
+ virt_text = { { text, "TelescopePromptCounter" } },
virt_text_pos = "right_align",
})
diff --git a/plugin/telescope.vim b/plugin/telescope.vim
index be8e3e0..53d1424 100644
--- a/plugin/telescope.vim
+++ b/plugin/telescope.vim
@@ -35,6 +35,8 @@ highlight default link TelescopePromptTitle TelescopeTitle
highlight default link TelescopeResultsTitle TelescopeTitle
highlight default link TelescopePreviewTitle TelescopeTitle
+highlight default link TelescopePromptCounter NonText
+
" Used for highlighting characters that you match.
highlight default link TelescopeMatching Special