From 5131df7df17d640191201ddb462e863022d7a61b Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Mon, 13 Sep 2021 22:03:41 +0200 Subject: docs: rewrite readme and add missing config values + builtin opts --- lua/telescope/previewers/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lua/telescope/previewers/init.lua') diff --git a/lua/telescope/previewers/init.lua b/lua/telescope/previewers/init.lua index b749056..0051fff 100644 --- a/lua/telescope/previewers/init.lua +++ b/lua/telescope/previewers/init.lua @@ -77,11 +77,11 @@ end --- It requires you to specify one table entry `get_command(entry, status)`. --- This `get_command` function has to return the terminal command that will be --- executed for each entry. Example: ----
+--- 
 ---   get_command = function(entry, status)
 ---     return { 'bat', entry.path }
 ---   end
---- 
+--- --- --- Additionally you can define: --- - `title` a static title for example "File Preview" @@ -219,12 +219,12 @@ previewers.qflist = term_previewer.qflist --- - `require('telescope.previewers.utils').ts_highlighter(bufnr, ft)` --- - If you want to use `vim.fn.search` or similar you need to run it in --- that specific buffer context. Do ----
+--- 
 ---       vim.api.nvim_buf_call(bufnr, function()
 ---         -- for example `search` and `matchadd`
 ---       end)
 ---     to achieve that.
---- 
+--- --- - If you want to read a file into the buffer it's best to use --- `buffer_previewer_maker`. But access this function with --- `require('telescope.config').values.buffer_previewer_maker` -- cgit v1.2.3