From aefc8317354426864a361d7b7d84848145d218c1 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Tue, 30 Mar 2021 12:32:18 +0200 Subject: fix: no longer leaking one buffer previewer in some occasions (#664) * fix: stop leaking last preview buffer * fix: formatting for docs * fix: async check if file is dir or not and - fix for in_fast_event when overriding file_maker * fix: filtering for space in keymaps and fzy * fix: show correct result numbers when using file_ignore_patterns * Handle early close. Caused because we actually cleaning up buffers now * cleanup * [docgen] Update doc/telescope.txt --- lua/telescope/previewers/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/telescope/previewers/init.lua') diff --git a/lua/telescope/previewers/init.lua b/lua/telescope/previewers/init.lua index be99c03..db801ea 100644 --- a/lua/telescope/previewers/init.lua +++ b/lua/telescope/previewers/init.lua @@ -72,9 +72,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
+--- 
--- --- It's an easy way to get your first previewer going and it integrates well --- with `bat` and `less`. Providing out of the box scrolling if the command -- cgit v1.2.3