tamton-aquib / staline.nvim

A modern lightweight statusline and bufferline plugin for neovim in lua.
MIT License
373 stars 16 forks source link

Not able to update stabline inactive color #25

Closed hackorum closed 2 years ago

hackorum commented 2 years ago
require('stabline').setup {
  defaults = {
    style = "bar",
    stab_left = "┃",
    stab_right = " ",
    inactive_bg = "#1e2127",
    inactive_fg = "#eeeeee", -- This does not update the foreground
    font_active = "bold",
    exclude_fts = {'NvimTree', 'dashboard', 'lir'},
    stab_start = "",
    stab_end = ""
  }
}

Could you please help me fix this?

tamton-aquib commented 2 years ago

Heyyo @hackorum , It seems the readme was wrong this whole time.

Stabline does not have a nested defaults table, instead all items go inside setup directly. In your case, it would be:

require('stabline').setup {
    style = "bar",
    stab_left = "┃",
    stab_right = " ",
    inactive_bg = "#1e2127",
    inactive_fg = "#eeeeee", -- This does not update the foreground
    font_active = "bold",
    exclude_fts = {'NvimTree', 'dashboard', 'lir'},
    stab_start = "",
    stab_end = ""
}

Will change the readme asap, and sorry again 😅

hackorum commented 2 years ago

Oh, ok. Thank you :)