Git Product home page Git Product logo

Comments (4)

smolck avatar smolck commented on May 25, 2024

Any reason this can't be fixed via a simple nvim.command('cd dir') or similar whenever a new directory is opened, or perhaps by a neovim option to do the same? Or should this be handled differently (I haven't looked into the code that provides the git information, so maybe there's a different way of finding the directory that should be used instead)?

from uivonim.

clason avatar clason commented on May 25, 2024

I don't think that's how nvim behaves -- the cwd remains set to the directory on startup, but statusline components are of course related to the current buffer. It's just that the Uivonim components do not behave the same (i.e., do not adapt to changes of the buffer). So it's an issue only on the Uivonim side, I think.

from uivonim.

smolck avatar smolck commented on May 25, 2024

Ah, okay. So just need to get the directory based on the current file (or the root folder of the current file, i.e. where the .git directory is) and not using the cwd. Perhaps there is a plugin somewhere that has an implementation of this which could show how to do this properly?

from uivonim.

smolck avatar smolck commented on May 25, 2024

Unless I'm misunderstanding, it seems this was fixed at some point; it worked on master pre-#191, and as of 7eb67ff it now works again. Closing.

from uivonim.

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.