From 1d78add91ea88d91cd0d4357940db21ddfb0c94f Mon Sep 17 00:00:00 2001 From: Tuan Nguyen <2762678+tuan3w@users.noreply.github.com> Date: Thu, 19 Aug 2021 11:06:32 +0700 Subject: [PATCH] chore: update path_display (#285) --- lua/plugins/telescope.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 40b7383..0fe5312 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -37,7 +37,10 @@ telescope.setup { file_sorter = require("telescope.sorters").get_fuzzy_file, file_ignore_patterns = {}, generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter, - path_display = { "absolute" }, + path_display = function(opts, path) + local tail = require("telescope.utils").path_tail(path) + return string.format("%s (%s)", tail, path) + end, winblend = 0, border = {}, borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },