summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2022-04-30 12:10:41 +0200
committerGitHub <noreply@github.com>2022-04-30 12:10:41 +0200
commit1b6909cfb322af93506a5187069e8d604d05feb5 (patch)
treeddf11116f11a411c21bfd2d7083fc9020deca529
parent460eb8c32bd946cc0e810e93aa72f7d7d9acc19d (diff)
docs(smart_path): add negative performance warning (#1899)
-rw-r--r--doc/telescope.txt4
-rw-r--r--lua/telescope/config.lua4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt
index f2be803..ee64206 100644
--- a/doc/telescope.txt
+++ b/doc/telescope.txt
@@ -235,7 +235,9 @@ telescope.setup({opts}) *telescope.setup()*
- "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
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