Closed shadmansaleh closed 2 years ago
Using void
seems to still work fine in v0.6.1.
we cant use vim.fn.pathshorten
because we need a api fast method. And schedule is not feasible because we cant schedule every time we want to display an shorten path in telescope.
Thanks for debugging.
function signature of
shorten_dir
changed in upstream commit https://github.com/neovim/neovim/commit/d65ee129143fedd43178c9be52095b5d2d06b5c2So now it returns void and plenary is dereferencing that as a pointer and causing segfault . See https://github.com/neovim/neovim/issues/17361
This patch seems to fix the issue
Actually why not just use
pathshorten()
exposed through viml ? That's stable and not prone it changes like this .