Skip to content

bug: Branch width string template in git status view is broken #137

@bnwa

Description

@bnwa

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.11.3

Operating system/version

macOS 15.6.1

Describe the bug

Calling Fugit2 consistently throws an error in the :init method of the git status view as the branch_width string template resolves to an invalid format: %-100s.

The culprit appears to be this line in the view logic. Removing the %-, which I believe is an attempt at an escaped dash character, fixes the issue and I'm able to open the Git status. I do notice wonky rendering when setting the width, height options though, so I just leave those to the defaults to be able to work with the plugin.

Steps To Reproduce

Call Fugit2 in a Lazy.nvim install of the plugin on latest stable Neovim.

Expected Behavior

Git status view should open

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions