nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
5.72k stars 455 forks source link

Feat: Setting ANSI/Raw colors #1176

Closed AntoinePrv closed 3 months ago

AntoinePrv commented 6 months ago

Requested feature

I'd like to be able to set ANSI colors, without them being mapped to a hex/RGB value. Most numbers work correctly but for some if I try theme={normal={a={bg=2, fg=21}}}, I observe ctermfg=12 instead of 21:

lualine_a_normal xxx ctermfg=12 ctermbg=2 guifg=#0000ff guibg=#008000

Motivation

Users of https://github.com/tinted-theming/base16-shell set their themes with ANSI color codes and then change the display value for the ANSI colors in their terminal, hence changing all at once (git, ipython, vim, tmux...).

If anything this is an anti-feature, I'd like lualine to do less with its input.