tamton-aquib / staline.nvim

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

mode_colors for v, not applying #68

Closed gldtn closed 6 months ago

gldtn commented 6 months ago

Seems like there might be a bug, in the mode_colors for v, not matter what I set I get what my theme highlights it by default. all other modes works fine, even 'V'. I tested in lualine and it respects the highlight color I set, which makes me think it's not something in my end.

Here is my config:

return {
  "tamton-aquib/staline.nvim",
  -- enabled = false,
  config = function()
    local p = require("rose-pine.palette")

    require 'staline'.setup {
      sections = {
        left = { '  ', 'mode', ' ', 'branch', ' ', 'file_name' },
        mid = { 'git_diff' },
        right = { 'lsp_name', ' ', 'line_column' }
      },
      mode_colors = {
        n = p.gold,
        i = p.love,
        ic = p.foam,
        c = p.pine,
        v = p.rose,
        V = p.iris,
      },
      defaults = {
        true_colors = true,
        line_column = " [%l/%L][%c] 並%p%% ",
        branch_symbol = " ",
      },
    }
  end,
}

Can someone confirm?

gldtn commented 6 months ago

I was applying the wrong mode, sorry!