Open Jlchong3 opened 5 months ago
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:
.git
.git
through file tree plugin shows the branch:e foo
shows the branchMy 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: https://github.com/nvim-neo-tree/neo-tree.nvim/issues/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 neo-tree.nvim
. If you want to double check you can pull the plugin with lazy using:
{
"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![image](https://github.com/nvim-lualine/lualine.nvim/assets/127264125/e702af86-f6bf-4185-a29d-45038d77c321)
When entering a file in a subdirectory![image](https://github.com/nvim-lualine/lualine.nvim/assets/127264125/3079030c-49ce-47ec-af74-7e1751402033)