fix: always split both forward/backward slashes

This commit is contained in:
Folke Lemaitre 2024-05-03 09:16:41 +02:00
parent 8e44ddccde
commit 861f9c643b
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -99,7 +99,7 @@ function M.pretty_path(opts)
end
local sep = package.config:sub(1, 1)
local parts = vim.split(path, sep)
local parts = vim.split(path, "[\\/]")
if opts.length == 0 then
parts = parts