summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authorqualious <denizsydgl@gmail.com>2021-09-12 22:14:00 +0300
committerGitHub <noreply@github.com>2021-09-12 21:14:00 +0200
commit1d17cc4abc493d20b4aba36569e8805c2382ea7b (patch)
treeb3ada5bb78027ef6fe67bbd243aa785f1f541bb9 /lua/telescope/config.lua
parent978366ba46e2306b60ef64bd9e51a6c758fe48f0 (diff)
feat: smart path (#914)
path_display = { "smart" } Co-authored-by: Deniz <deniz@admentum.se> Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index d58b94e..c66278f 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -201,6 +201,8 @@ local telescope_defaults = {
- "hidden" hide file names
- "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
- "shorten" only display the first character of each directory in
the path