From f078d149a1cfb9e98d9be400b6660dbaa6a58ce9 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Thu, 17 Dec 2020 15:58:38 +0100 Subject: Update autocmd, highlights and help_tags previewers (#332) Also make vim buffer line configurable --- plugin/telescope.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugin') diff --git a/plugin/telescope.vim b/plugin/telescope.vim index 4bf165d..b9d99ee 100644 --- a/plugin/telescope.vim +++ b/plugin/telescope.vim @@ -1,4 +1,3 @@ - " Sets the highlight for selected items within the picker. highlight default link TelescopeSelection Visual highlight default link TelescopeSelectionCaret TelescopeSelection @@ -21,13 +20,16 @@ highlight default link TelescopeMatching Special " Used for the prompt prefix highlight default link TelescopePromptPrefix Identifier +" Used for highlighting the matched line inside Previewer. Works only for (vim_buffer_ previewer) +highlight default link TelescopePreviewLine Search + " This is like "" in your terminal. " To use it, do `cmap (TelescopeFuzzyCommandSearch) cnoremap (TelescopeFuzzyCommandSearch) e \ "lua require('telescope.builtin').command_history { \ default_text = [=[" . escape(getcmdline(), '"') . "]=] \ }" - + " Telescope builtin lists function! s:telescope_complete(...) return join(luaeval('vim.tbl_keys(require("telescope.builtin"))'), "\n") @@ -54,5 +56,5 @@ function! s:load_command(builtin,...) abort call telescope[a:builtin](opts) endfunction -" Telescope Commands with complete +" Telescope Commands with complete command! -nargs=+ -complete=custom,s:telescope_complete Telescope call s:load_command() -- cgit v1.2.3