summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authortami5 <65782666+tami5@users.noreply.github.com>2021-09-20 12:52:59 +0300
committerGitHub <noreply@github.com>2021-09-20 12:52:59 +0300
commit60660334c70d9d81dccc10a563e01920b9455e76 (patch)
tree856d8503c209e4c9079b3e64df0b966f21db2ed0 /lua/telescope/config.lua
parentf0db7d3a5997cbd7e60638a071c1b661a854dfc6 (diff)
feat(defaults): enable customization of path_display.truncate (#1264)
followup to https://github.com/nvim-telescope/telescope.nvim/pull/1254 and implementation of https://github.com/nvim-telescope/telescope.nvim/pull/1254#issuecomment-922527270
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index 7a54ec3..37ca919 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -257,7 +257,8 @@ append(
- "shorten" only display the first character of each directory in
the path
- "truncate" truncates the start of the path when the whole path will
- not fit
+ not fit. To increase the the gap between the path and the edge.
+ set truncate to number `truncate = 3`
You can also specify the number of characters of each directory name
to keep by setting `path_display.shorten = num`.