Closed doubleloop closed 3 years ago
Thanks for the fix! @doubleloop
@doubleloop it can also be path_display = { shorten = 5 }
as specified in :h telescope.defaults.path_display
and parsed at https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/utils.lua#L285-L325
Previous commented function was overcomplicated. It constructed return dictionary using
setmetatable
and object with custom__index
. I know this was taken straight from the telescope source code but this dictionary can be just constructed directly. Also fixedpath
usages.