freddiehaddad / feline.nvim

A minimal, stylish and customizable statusline, statuscolumn, and winbar for Neovim
GNU General Public License v3.0
289 stars 8 forks source link

bug: git branch component not working #70

Closed maclong9 closed 7 months ago

maclong9 commented 7 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.9.5

Operating system/version

6.7.4-zen1-1-zen

Describe the bug

Everything else works fine but the Git Branch provider doesn't.

I have the other sections setup in my config but this is everything where git_branch is used.

I definitely have lewis6991/gitsigns.nvim added as a dependency.

Steps To Reproduce

  1. use config above
  2. reload and see no git_branch

Expected Behavior

visible git_branch

Repro

{
'freddiehaddad/feline.nvim',
config = function()
local c = {
  git_branch = {
    provider = "git_branch",
  }
}
local left = {
  c.git_branch,
}

local components = {
  active = {
    left
  }
  inactive = {
    right
  }

require('feline').setup({
  components = components,
})
end
}
maclong9 commented 7 months ago

never-mind I needed to add require('gitsigns').setup() to the config section.