mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2026-02-04 06:42:06 +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:
@@ -49,13 +49,7 @@ local function format_filepath(filename, opts)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if opts.tail_path then
|
return utils.transform_path(opts, filename)
|
||||||
filename = utils.path_tail(filename)
|
|
||||||
elseif opts.shorten_path then
|
|
||||||
filename = utils.path_shorten(filename)
|
|
||||||
end
|
|
||||||
|
|
||||||
return filename
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_workspace_tags()
|
local function get_workspace_tags()
|
||||||
|
|||||||
Reference in New Issue
Block a user