summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2020-12-17 15:58:38 +0100
committerGitHub <noreply@github.com>2020-12-17 15:58:38 +0100
commitf078d149a1cfb9e98d9be400b6660dbaa6a58ce9 (patch)
treeeec5f8ee58e6939ebd5331c3e0b03598731a079f /plugin
parente5233f39c50b723c562e6a6390ecf46b0237be68 (diff)
Update autocmd, highlights and help_tags previewers (#332)
Also make vim buffer line configurable
Diffstat (limited to 'plugin')
-rw-r--r--plugin/telescope.vim8
1 files changed, 5 insertions, 3 deletions
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 "<C-R>" in your terminal.
" To use it, do `cmap <C-R> <Plug>(TelescopeFuzzyCommandSearch)
cnoremap <silent> <Plug>(TelescopeFuzzyCommandSearch) <C-\>e
\ "lua require('telescope.builtin').command_history {
\ default_text = [=[" . escape(getcmdline(), '"') . "]=]
\ }"<CR><CR>
-
+
" 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(<f-args>)