mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
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:
parent
cf3a1deb9c
commit
4c46d46859
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user