chore: update path_display (#285)

This commit is contained in:
Tuan Nguyen 2021-08-19 11:06:32 +07:00 committed by GitHub
parent fdb2fa115d
commit 1d78add91e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = { "", "", "", "", "", "", "", "" },