-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Not detecting branch on files in subdirectories #1183
Comments
Use ":e path/to/your/file" or use telescope plugin to find file can solve this problem. |
Came across this today, To add a few more details:
My initial reaction is that this may be caused by how neo-tree opens files, since I don't get the same issue with telescope - but I don't have any evidence to back up that claim. Edit: fixed wording |
I just stumbled across a Neo-tree issue that seems to be the cause of this issue. Linking to it here so both issues have visibility on each other: nvim-neo-tree/neo-tree.nvim#1264 This looks like it would be a Windows-specific problem from Neo-tree, and @Jlchong3 from your path separator it seems you are on Windows as well. I also verified, I'm not getting this git branch problem on WSL with the exact same config when opening from Neo-tree. |
I believe this issue is fixed by the latest PR mentioned above in {
"nvim-neo-tree/neo-tree.nvim",
branch = "main".
-- ...
} |
The lualine detects the branch I am in when I use a file in the same directory as the .git, but when going to a file in a subdirectory lualine stops showing the branch I am in, is that supposed to happen?
Here it is with a file in the same directory as .git
When entering a file in a subdirectory
The text was updated successfully, but these errors were encountered: