Git highlight and icon doesn't appear on file
fedepujol opened this issue · comments
Build type: RelWithDebInfo
Compiled by runneradmin@fv-az152-703
Describe the bug
When doing simple editing task on a file (changing and adding new lines) or delete the file or folder. The git status (highlight and icon) doesn't go all the way to the file and stops on the first folder.
I've modified the init.lua from the terminal folder and it doesn't get the highlight or the icon for the git status. However this doesn't happen on my linux machine.
Modify/delete/add a new file/folder to current directory
Get git highlight and icon for modified files/folder
I'm not sure how to debug this, i do not have a windows environment to test this :/ maybe you could give it a try if you are good enough with windows debugging
I could try with some pointers! The strange thing is that it used to work on an older version (not sure which commit but I'll try to identify when it goes away).
Where will be a good place to start debugging this?
Same thing happening here.
It was working fine up to and including
My guess is that it has something to do with the way it handles windows paths. Either a casing issue (c: C:), a forward/backward slash translation or short/absolute path translation.
Icons and highlights work only for the root folder children(files and folders).
Neovim Version: V0.6.0
I have the same problem too.
@kyazdani42 The problem is how it handle the forward/backward slashes in Windows. It doesn't change all the all of them.
I've modified this files and they begin to appeared like this:
C:\Users\fp\AppData\nvim-data\site\paq\packs\start\nvim-tree.lua\lua/nvim-tree/git C:\Users\fp\AppData\nvim-data\site\paq\packs\start\nvim-tree.lua\lua/nvim-tree/git/init.lua C:\Users\fp\AppData\nvim-data\site\paq\packs\start\nvim-tree.lua\lua/nvim-tree/git/utilslua C:\Users\fp\AppData\nvim-data\site\paq\packs\start\nvim-tree.lua\lua/nvim-tree/populate.lua
After a changing all backward slashes to forward slashes, the issue goes away.