fgheng / winbar.nvim

winbar config for neovim
111 stars 22 forks source link

Default config.enable doesn't work #6

Closed ghost closed 2 years ago

ghost commented 2 years ago

My winbar.lua


require('winbar').setup({
  -- enabled = true,                                                                                                             
  show_symbols = false,                                                                                                          
})

winbar.nvim not work.
fgheng commented 2 years ago

The default value in winbar.nvim is true https://github.com/fgheng/winbar.nvim/blob/26d201463e0f86fd0afbdd8b6db6632a2d0930f4/lua/winbar/config.lua#L4

so winbar will show if you annotated config.enabled.

ghost commented 2 years ago

I mean enable must be set explicitly in my winbar.lua, otherwise winbar will not show.

fgheng commented 2 years ago

Yes, I think this is a good idea, I will change the default value from true to false.

fgheng commented 2 years ago

I have changed it. https://github.com/fgheng/winbar.nvim/commit/d93ce3aa177b620e61c9ae19a168a0272e0d7699 please have a try.