mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix: always split both forward/backward slashes
This commit is contained in:
parent
8e44ddccde
commit
861f9c643b
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ function M.pretty_path(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
local sep = package.config:sub(1, 1)
|
local sep = package.config:sub(1, 1)
|
||||||
local parts = vim.split(path, sep)
|
local parts = vim.split(path, "[\\/]")
|
||||||
|
|
||||||
if opts.length == 0 then
|
if opts.length == 0 then
|
||||||
parts = parts
|
parts = parts
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue