savq/melange-nvim

[feature request] add transparency?

Closed this issue · 2 comments

just found out about melange thanks to this blog post, and I totally stand by this:

the only colorscheme I’ve found that I didn’t eject in horror after 5 minutes, except for gruvbox

Would you consider adding transparency?

savq commented

I'm not planning on adding more configuration options to Melange in the near future. You can modify Melange using existing features, that is, you can override highlight groups in an autocommand that runs when melange is loaded.

In Vimscript:

augroup OverrideMelange
  autocmd!
  autocmd ColorScheme melange highlight Normal guibg=NONE
augroup END

Or in Lua:

local group = vim.api.nvim_create_augroup('OverrideMelange', {})
vim.api.nvim_create_autocmd('ColorScheme', {
  pattern = 'melange',
  callback = function() vim.api.nvim_set_hl(0, 'Normal', { bg = 'NONE' }) end,
  group = group,
})

Thanks!