Comments (4)
Use ":e path/to/your/file" or use telescope plugin to find file can solve this problem.
from lualine.nvim.
Came across this today, To add a few more details:
- Looks like the bug only triggers when opening a file from my file tree plugin (neo-tree.nvim) which is not in the same directory as
.git
- This appears to be the same plugin as in the screenshot
- Opening a file in same directory as
.git
through file tree plugin shows the branch - Opening any file through telescope or
:e foo
shows the branch
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
from lualine.nvim.
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.
from lualine.nvim.
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".
-- ...
}
from lualine.nvim.
Related Issues (20)
- Bug: when running mosh with neovim and lualine, terminal is broken
- Bug: Two status lines appear when using nvim -p[x] and switching tabs HOT 8
- E539: Illegal character <,> HOT 3
- Feat: Hide the lualine background color when fzf-lua/fzf is up and running
- Bug: (suggestion): remove default filename in command bar when there is one displayed in lualine HOT 1
- Feat: Add harpoon-lualine to Wiki page HOT 1
- Bug: Component conditions not properly evaluation at launch
- Feat: Middle custom options HOT 5
- Bug: User runtime path doesn't have priority on Windows
- Feat: Show tab number by default unless the tab is renamed HOT 1
- Feat: More flexible way to disable lualine or enable extensions
- Bug: flickering / blinking when `globalstatus = true` HOT 1
- docs: typo on wiki HOT 1
- Bug: Icons show white separator HOT 1
- Bug: on_click option not working in components 'buffers' and 'tabs'
- Feat: Ability to use extensions in winbars and tabline
- Question how to not override DAP UI control buttons? HOT 3
- Bug: Invalid window ID HOT 9
- Bug: evil_lualine little padding...
- Bug: fugitive extension sets statusline but not tabline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lualine.nvim.