nvimdev / dashboard-nvim

vim dashboard
MIT License
2.34k stars 190 forks source link

fix(hyper): handle backslash and slash regardles of os in cwd #463

Closed adriankarlen closed 3 months ago

adriankarlen commented 3 months ago

Issue

If a user has vim.o.shellslash enabled slash usage on windows can get a bit weird. uv.cwd returns \ while the filepaths in mru will contain /.

The aim of this PR is to solve this issue by instead of defaulting to backslash on windows, get the separator from the first item of mru, and use that as separator in cwd_with_sep