We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9298c1b commit 77d9f48Copy full SHA for 77d9f48
lua/neo-tree/utils/init.lua
@@ -761,6 +761,11 @@ M.normalize_path = function(path)
761
if M.is_windows then
762
-- normalize the drive letter to uppercase
763
path = path:sub(1, 1):upper() .. path:sub(2)
764
+ -- Turn mixed forward and back slashes into all forward slashes
765
+ -- using NeoVim's logic
766
+ path = vim.fs.normalize(path)
767
+ -- Now use backslashes, as expected by the rest of Neo-Tree's code
768
+ path = path:gsub("/", M.path_separator)
769
end
770
return path
771
0 commit comments