You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows paths are not case sensitive in most cases, but this is not a problem normally. But lsp servers report paths with the drive letter normalized to lower case, but windows paths usually have upper case drive letters. This means that when cwd is, for example, C:\my_project\, sometimes I have a file c:\my_project\a_file.rs, which trigger the 'File not in cwd' prompt when running :NeoTreeReveal.
I temporally solve this problem by replacing the condition in this line with not M.is_subpath(cwd, path), from code below. I can open a PR if you wish. I don't know if you may know a better solution or want to wait for neovim/neovim#16331.
If you could open a PR that would be great. I don't use nvim natively on windows myself so I can't properly test it.
One question though: would it be better to just lowercase the whole path if it is on Windows since the whole path is actually case insensitive? The neo-tree.utils module does have a is_windows property to determine if it is running on windows.
This is similar neovim/nvim-lspconfig#1168. See also neovim/neovim#16331.
Windows paths are not case sensitive in most cases, but this is not a problem normally. But lsp servers report paths with the drive letter normalized to lower case, but windows paths usually have upper case drive letters. This means that when cwd is, for example,
C:\my_project\
, sometimes I have a filec:\my_project\a_file.rs
, which trigger the 'File not in cwd' prompt when running:NeoTreeReveal
.I temporally solve this problem by replacing the condition in this line with
not M.is_subpath(cwd, path)
, from code below. I can open a PR if you wish. I don't know if you may know a better solution or want to wait for neovim/neovim#16331.The text was updated successfully, but these errors were encountered: