From 1b6909cfb322af93506a5187069e8d604d05feb5 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Sat, 30 Apr 2022 12:10:41 +0200 Subject: docs(smart_path): add negative performance warning (#1899) --- lua/telescope/config.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 1f4556b..37a2846 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -315,7 +315,9 @@ append( - "tail" only display the file name, and not the path - "absolute" display absolute paths - "smart" remove as much from the path as possible to only show - the difference between the displayed paths + the difference between the displayed paths. + Warning: The nature of the algorithm might have a negative + performance impact! - "shorten" only display the first character of each directory in the path - "truncate" truncates the start of the path when the whole path will -- cgit v1.2.3