GithubHelp home page GithubHelp logo

Comments (4)

Leeto1970 avatar Leeto1970 commented on June 2, 2024

Use ":e path/to/your/file" or use telescope plugin to find file can solve this problem.

from lualine.nvim.

bwpge avatar bwpge commented on June 2, 2024

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.

bwpge avatar bwpge commented on June 2, 2024

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.

bwpge avatar bwpge commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.