savq / melange-nvim

🗡️ Warm color scheme for Neovim and beyond
MIT License
732 stars 55 forks source link

g:terminal_ansi_colors #83

Closed barrett-ruth closed 6 months ago

barrett-ruth commented 6 months ago

Hello,

Love the color scheme. Is there a defined set of 16 RRGGBB values that correlate to the ANSI colors used by the terminal? I believe it is also best practice for colorschemes to include this (e $VIMRUNTIME/colors/README.txt).

I see this file here - does this match those exact values?

Thanks.

savq commented 6 months ago

It seems g:terminal_ansi_colors is only documented in Vim, not Neovim. But it's a good idea. I'll try and look into why neovim hasn't ported it over.

The alternative is using the g.terminal_color_x variables defiend at the bottom of colors/melange.lua.

The terminal themes generator uses the function get_palette to turn melange naming convention into something closer to ANSI naming conventions.

barrett-ruth commented 6 months ago

Nevermind. The alternative you have is more up to date. You could just set the table equal to g:terminal_ansi_colors for completeness, though. Thanks!