feat: use telescope builtin transform_path (#46)

Telescope has changed the way how the options for path transform can be
set. Use the appropriate new interface to transform the paths for
display.
This commit is contained in:
Fabian Langguth 2021-10-04 21:04:24 +02:00 committed by GitHub
parent cf3a1deb9c
commit 4c46d46859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,13 +49,7 @@ local function format_filepath(filename, opts)
end
end
if opts.tail_path then
filename = utils.path_tail(filename)
elseif opts.shorten_path then
filename = utils.path_shorten(filename)
end
return filename
return utils.transform_path(opts, filename)
end
local function get_workspace_tags()